}
FGATCVoice::~FGATCVoice() {
- // delete SoundData;
+ free( rawSoundData );
+ delete SoundData;
}
// Load the two voice files - one containing the raw sound data (.wav) and one containing the word positions (.vce).
string file = voice + ".wav";
- SoundData = new SGSoundSample( path.c_str(), file.c_str() );
+ SoundData = new SGSoundSample( path.c_str(), file.c_str(), false );
rawDataSize = SoundData->get_size();
rawSoundData = SoundData->get_data();