mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 07:48:58 +00:00
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:
parent
ec8f1b092d
commit
c32c7e00c4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user