Forráskód Böngészése

openal: Fix paused sounds not resuming from where they were paused (#1031)

Brian Lach 5 éve
szülő
commit
eb367430f7
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      panda/src/audiotraits/openalAudioSound.cxx

+ 2 - 0
panda/src/audiotraits/openalAudioSound.cxx

@@ -832,6 +832,8 @@ set_active(bool active) {
           // ...we're pausing a looping sound.
           _paused=true;
         }
+        // Store off the current time so we can resume from where we paused.
+        _start_time = get_time();
         stop();
       }
     }