X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2FATCVoice.hxx;h=5128cc55dda2fc0654d3405f59370b6e3946de69;hb=2bdaebb7d948de52b3e32b1d12224491c0361621;hp=6ec4f39324ad7e62e8dc08956abe82cd67821b5b;hpb=f9445874a02689cbd9a0197c5aac7ffeab1436ac;p=flightgear.git diff --git a/src/ATCDCL/ATCVoice.hxx b/src/ATCDCL/ATCVoice.hxx index 6ec4f3932..5128cc55d 100644 --- a/src/ATCDCL/ATCVoice.hxx +++ b/src/ATCDCL/ATCVoice.hxx @@ -22,6 +22,7 @@ #define _FG_ATC_VOICE #include +#include #include #include @@ -50,14 +51,14 @@ public: // 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 SoundData; // A map of words vs. byte position and length in rawSoundData atc_word_map_type wordMap;