Explorar o código

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

Przemyslaw Iwanowski %!s(int64=16) %!d(string=hai) anos
pai
achega
d937cb20f9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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
   // _paused.  play() accesses _paused to help in the situation where
   // someone calls play on an inactive sound().
   // 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) {
   if (_sample != 0) {
     AIL_end_sample(_sample);
     AIL_end_sample(_sample);