Browse Source

fix for audio bug where stopped looping sounds resume after sndmgr is turned back on

Przemyslaw Iwanowski 16 years ago
parent
commit
d937cb20f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/audiotraits/milesAudioSample.cxx

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

@@ -132,6 +132,9 @@ stop() {
   // _paused.  play() accesses _paused to help in the situation where
   // someone calls play on an inactive sound().
 
+  // it fixes audio bug, I don't understand the reasoning of the above comment
+  _paused = false; 
+
   if (_sample != 0) {
     AIL_end_sample(_sample);