aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoreriktorbjorn2011-07-10 07:39:38 +0200
committereriktorbjorn2011-07-10 07:39:38 +0200
commit1b231ed7ff428b05d1fc6e5f8786325b7eee95a3 (patch)
tree36641d379044d281e6542a821a77d96410610341 /engines
parent6355ccc677d5b7f167d5ea9a03f1cf08248e91e9 (diff)
downloadscummvm-rg350-1b231ed7ff428b05d1fc6e5f8786325b7eee95a3.tar.gz
scummvm-rg350-1b231ed7ff428b05d1fc6e5f8786325b7eee95a3.tar.bz2
scummvm-rg350-1b231ed7ff428b05d1fc6e5f8786325b7eee95a3.zip
SAGA: Mute the music while the game is paused
It already paused the music, but any notes that were playing were just left hanging. At least with the ALSA MIDI driver. This was quite annoying when using the debug console.
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/music.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp
index 85315ab8c4..49d3f91d77 100644
--- a/engines/saga/music.cpp
+++ b/engines/saga/music.cpp
@@ -373,10 +373,12 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
void Music::pause() {
_player->pause();
+ _player->setVolume(0);
}
void Music::resume() {
_player->resume();
+ _player->setVolume(_vm->_musicVolume);
}
void Music::stop() {