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

This commit is contained in:
Brian Lach 2020-10-08 11:17:36 -04:00 committed by GitHub
parent c788912070
commit eb367430f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}