X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FATCDCL%2FATCVoice.hxx;h=5128cc55dda2fc0654d3405f59370b6e3946de69;hb=37591d0ac9c316f107a3c38043edd3a7f89b4892;hp=5da9768481fdf5a9b0f2d7502422abc03980614f;hpb=e503591af4f16814d78ded49c5979e273d81a0be;p=flightgear.git diff --git a/src/ATCDCL/ATCVoice.hxx b/src/ATCDCL/ATCVoice.hxx index 5da976848..5128cc55d 100644 --- a/src/ATCDCL/ATCVoice.hxx +++ b/src/ATCDCL/ATCVoice.hxx @@ -22,6 +22,7 @@ #define _FG_ATC_VOICE #include +#include #include #include @@ -49,15 +50,15 @@ public: bool LoadVoice(const std::string& voice); // Given a desired message, return a pointer to the data buffer and write the buffer length into len. - // Sets dataOK = true if the returned buffer is valid. - std::string WriteMessage(const char* message, bool& dataOK); + // Sets len to something other than 0 if the returned buffer is valid. + void* WriteMessage(const std::string& message, size_t *len); private: // the sound and word position data char* rawSoundData; - unsigned int rawDataSize; - SGSoundSample *SoundData; + size_t rawDataSize; + SGSharedPtr SoundData; // A map of words vs. byte position and length in rawSoundData atc_word_map_type wordMap;