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
This commit is contained in:
Torbjörn Andersson 2006-08-01 03:29:32 +00:00
parent ec8f1b092d
commit c32c7e00c4

View File

@ -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;