From e08ddf70b2c7a1cef13e9db39735a58902caa2ae Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 7 Apr 2013 22:08:30 +0200 Subject: 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. --- engines/kyra/sound_midi.cpp | 1 - 1 file changed, 1 deletion(-) 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; } } -- cgit v1.2.3