Fixed looping bug, maybe

This commit is contained in:
Josh Yelon 2007-04-09 21:54:32 +00:00
parent 929d371b8f
commit 2443e6c76a

View File

@ -117,8 +117,10 @@ FmodAudioSound(AudioManager *manager, Filename file_name, bool positional) {
fmod_audio_errcheck("createSound (blank)", result); fmod_audio_errcheck("createSound (blank)", result);
} }
result->setMode(FMOD_LOOP_OFF); // Some WAV files contain a loop bit. This is not handled
result->setLoopCount(-1); // consistently. Override it.
_sound->setMode(FMOD_LOOP_OFF);
_sound->setLoopCount(-1);
//This is just to collect the defaults of the sound, so we don't //This is just to collect the defaults of the sound, so we don't
//Have to query FMOD everytime for the info. //Have to query FMOD everytime for the info.