From c32c7e00c4e1d8688a4aa548d41c623acdb8ba3d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 1 Aug 2006 03:29:32 +0000 Subject: Don't set the MIDI volume to 255 at the end of a fade-out. At least on my hardware, that causes an annoying spike in the volume. We already reset the volume to 255 at the beginning of a new track anyway, as far as I can tell. svn-id: r23650 --- engines/kyra/sound.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'engines/kyra/sound.cpp') diff --git a/engines/kyra/sound.cpp b/engines/kyra/sound.cpp index a279cb9499..a97f85c579 100644 --- a/engines/kyra/sound.cpp +++ b/engines/kyra/sound.cpp @@ -345,7 +345,6 @@ void SoundMidiPC::onTimer(void *refCon) { byte volume = (byte)((musicFadeTime - (music->_engine->_system->getMillis() - music->_fadeStartTime)) * 255 / musicFadeTime); music->setVolume(volume); } else if (music->_fadeStartTime) { - music->setVolume(255); music->_fadeStartTime = 0; music->_fadeMusicOut = false; music->_isPlaying = false; -- cgit v1.2.3