From 2443e6c76a9e1be73d1aea22a2283d5254c4e409 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Mon, 9 Apr 2007 21:54:32 +0000 Subject: [PATCH] Fixed looping bug, maybe --- panda/src/audiotraits/fmodAudioSound.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/audiotraits/fmodAudioSound.cxx b/panda/src/audiotraits/fmodAudioSound.cxx index eac26e4e6b..b7a8c60882 100644 --- a/panda/src/audiotraits/fmodAudioSound.cxx +++ b/panda/src/audiotraits/fmodAudioSound.cxx @@ -117,8 +117,10 @@ FmodAudioSound(AudioManager *manager, Filename file_name, bool positional) { fmod_audio_errcheck("createSound (blank)", result); } - result->setMode(FMOD_LOOP_OFF); - result->setLoopCount(-1); + // Some WAV files contain a loop bit. This is not handled + // 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 //Have to query FMOD everytime for the info.