From eb367430f7d4aad7d01e5b9212534b066e5a21f6 Mon Sep 17 00:00:00 2001 From: Brian Lach <32017152+lachbr@users.noreply.github.com> Date: Thu, 8 Oct 2020 11:17:36 -0400 Subject: [PATCH] openal: Fix paused sounds not resuming from where they were paused (#1031) --- panda/src/audiotraits/openalAudioSound.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/audiotraits/openalAudioSound.cxx b/panda/src/audiotraits/openalAudioSound.cxx index ff7d187a3d..087686a452 100644 --- a/panda/src/audiotraits/openalAudioSound.cxx +++ b/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(); } }