aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_midi.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-04-07 22:08:30 +0200
committerTorbjörn Andersson2013-04-07 22:10:48 +0200
commite08ddf70b2c7a1cef13e9db39735a58902caa2ae (patch)
treeea2b2bd0362985c85c95ac7fbd251ff6eabd44ae /engines/kyra/sound_midi.cpp
parentcdf1900ce09afcef7d32d5126679730ada8f2a69 (diff)
downloadscummvm-rg350-e08ddf70b2c7a1cef13e9db39735a58902caa2ae.tar.gz
scummvm-rg350-e08ddf70b2c7a1cef13e9db39735a58902caa2ae.tar.bz2
scummvm-rg350-e08ddf70b2c7a1cef13e9db39735a58902caa2ae.zip
KYRA: Don't restore music volume right after it has faded down
Since the music volume is set in playTrack(), it shouldn't be necessary to set it back to the default level when a fade out has been completed. This change prevents the volume from spiking right before quitting the game. I hope it doesn't cause regressions.
Diffstat (limited to 'engines/kyra/sound_midi.cpp')
-rw-r--r--engines/kyra/sound_midi.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/engines/kyra/sound_midi.cpp b/engines/kyra/sound_midi.cpp
index a54c52612b..b93b42fa9c 100644
--- a/engines/kyra/sound_midi.cpp
+++ b/engines/kyra/sound_midi.cpp
@@ -783,7 +783,6 @@ void SoundMidiPC::onTimer(void *data) {
midi->_sfx[i]->stopPlaying();
}
- midi->_output->setSourceVolume(0, midi->_musicVolume, true);
midi->_fadeMusicOut = false;
}
}