]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/flitevoice.hxx
apt.dat parser: clearer log and exception messages
[flightgear.git] / src / Sound / flitevoice.hxx
index 4322b9d18f026abaa6762749c87b58f1afff7fed..ee616e8ed8f2b0e6ed569537c319ca6faaf735dc 100644 (file)
 
 #include "voice.hxx"
 #include <simgear/sound/soundmgr_openal.hxx>
+#include <simgear/sound/sample_openal.hxx>
+#include <simgear/threads/SGQueue.hxx>
 
 class VoiceSynthesizer;
 
 class FGFLITEVoice: public FGVoiceMgr::FGVoice {
 public:
-  FGFLITEVoice(FGVoiceMgr *, const SGPropertyNode_ptr);
+  FGFLITEVoice(FGVoiceMgr *, const SGPropertyNode_ptr, const char * sampleGroupRefName = "flite-voice");
   virtual ~FGFLITEVoice();
   virtual void speak(const std::string & msg);
   virtual void update();
+
 private:
   FGFLITEVoice(const FGFLITEVoice & other);
   FGFLITEVoice & operator =(const FGFLITEVoice & other);
 
   SGSharedPtr<SGSampleGroup> _sgr;
   VoiceSynthesizer * _synthesizer;
+  SGLockedQueue<SGSharedPtr<SGSoundSample> > _sampleQueue;
+  std::string _sampleName;
 };
 
 #endif // _FLITEVOICE_HXX