Skip to content

Commit

Permalink
SAGA: Mute the music while the game is paused
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eriktorbjorn committed Jul 10, 2011
1 parent 6355ccc commit 1b231ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/saga/music.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit 1b231ed

Please sign in to comment.