瀏覽代碼

*** empty log message ***

Josh Yelon 18 年之前
父節點
當前提交
929d371b8f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      panda/src/audiotraits/fmodAudioSound.cxx

+ 3 - 0
panda/src/audiotraits/fmodAudioSound.cxx

@@ -116,6 +116,9 @@ FmodAudioSound(AudioManager *manager, Filename file_name, bool positional) {
     result = _manager->_system->createSound( blank_data, FMOD_SOFTWARE | flag | FMOD_OPENMEMORY | FMOD_OPENRAW, &exinfo, &_sound);
     result = _manager->_system->createSound( blank_data, FMOD_SOFTWARE | flag | FMOD_OPENMEMORY | FMOD_OPENRAW, &exinfo, &_sound);
     fmod_audio_errcheck("createSound (blank)", result);
     fmod_audio_errcheck("createSound (blank)", result);
   }
   }
+
+  result->setMode(FMOD_LOOP_OFF);  
+  result->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.