mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 20:55:19 +00:00
Fix non-MIDI music still playing, when the game is paused.
svn-id: r27156
This commit is contained in:
parent
bcd4dfb86a
commit
8bcf073444
@ -945,13 +945,17 @@ void AGOSEngine::pause() {
|
||||
bool music_status = _musicPaused;
|
||||
|
||||
_midi.pause(true);
|
||||
_mixer->pauseAll(true);
|
||||
_sound->ambientPause(true);
|
||||
|
||||
while (_pause) {
|
||||
delay(1);
|
||||
if (_keyPressed == 'p')
|
||||
_pause = 0;
|
||||
}
|
||||
|
||||
_midi.pause(music_status);
|
||||
_mixer->pauseAll(false);
|
||||
_sound->ambientPause(ambient_status);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user