#define _FG_ATC_VOICE
#include <simgear/compiler.h>
+#include <simgear/structure/SGSharedPtr.hxx>
#include <map>
#include <string>
// Given a desired message, return a pointer to the data buffer and write the buffer length into len.
// Sets len to something other than 0 if the returned buffer is valid.
- void* WriteMessage(const char* message, size_t *len);
+ void* WriteMessage(const std::string& message, size_t *len);
private:
// the sound and word position data
char* rawSoundData;
size_t rawDataSize;
- SGSoundSample *SoundData;
+ SGSharedPtr<SGSoundSample> SoundData;
// A map of words vs. byte position and length in rawSoundData
atc_word_map_type wordMap;