[Scummvm-cvs-logs] scummvm master -> 1b231ed7ff428b05d1fc6e5f8786325b7eee95a3

eriktorbjorn eriktorbjorn at telia.com
Sun Jul 10 07:44:02 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1b231ed7ff SAGA: Mute the music while the game is paused


Commit: 1b231ed7ff428b05d1fc6e5f8786325b7eee95a3
    https://github.com/scummvm/scummvm/commit/1b231ed7ff428b05d1fc6e5f8786325b7eee95a3
Author: eriktorbjorn (eriktorbjorn at users.sourceforge.net)
Date: 2011-07-09T22:39:38-07:00

Commit Message:
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.

Changed paths:
    engines/saga/music.cpp



diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp
index 85315ab..49d3f91 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() {






More information about the Scummvm-git-logs mailing list