]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCVoice.cxx
Update 'magic' for more consistant cross platform padding.
[flightgear.git] / src / ATC / ATCVoice.cxx
index 02ef855a51da3c77ddb96d6da7e252847fb2086f..727681631903165a17eed00bf50dc542f89c83e7 100644 (file)
@@ -54,9 +54,9 @@ bool FGATCVoice::LoadVoice(const string& voice) {
 
         string file = voice + ".wav";
        
-       SoundData = new SGSoundSample( path.c_str(), file.c_str(), false );
+       SoundData = new SGSoundSample();
+        rawSoundData = (char *)SoundData->load_file(path.c_str(), file.c_str());
        rawDataSize = SoundData->get_size();
-       rawSoundData = SoundData->get_data();
        
        path = globals->get_fg_root();
        string wordPath = "ATC/" + voice + ".vce";