]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCVoice.hxx
The most important part is that it fixes possible
[flightgear.git] / src / ATC / ATCVoice.hxx
index 8edd8953eb8bdba410ea7b14a8f2528239efafbe..965aeadcc4cb9bee9f011da3f7879d2d627b2f9d 100644 (file)
@@ -35,6 +35,8 @@
 #include <list>
 #include <string>
 
+#include <simgear/sound/sample_openal.hxx>
+
 SG_USING_STD(map);
 SG_USING_STD(list);
 SG_USING_STD(string);
@@ -63,7 +65,7 @@ public:
 
        // Load the two voice files - one containing the raw sound data (.wav) and one containing the word positions (.vce).
        // Return true if successful.   
-       bool LoadVoice(string voice);
+       bool LoadVoice(const 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.
@@ -75,7 +77,7 @@ private:
        // the sound and word position data
        char* rawSoundData;
        unsigned int rawDataSize;
-       slSample* SoundData;
+        SGSoundSample *SoundData;
 
        // A map of words vs. byte position and length in rawSoundData
        atc_word_map_type wordMap;