[Scummvm-cvs-logs] SF.net SVN: scummvm: [23650] scummvm/trunk/engines/kyra/sound.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue Aug 1 05:29:36 CEST 2006
Revision: 23650
Author: eriktorbjorn
Date: 2006-07-31 20:29:32 -0700 (Mon, 31 Jul 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23650&view=rev
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/sound.cpp
Modified: scummvm/trunk/engines/kyra/sound.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound.cpp 2006-07-31 23:05:01 UTC (rev 23649)
+++ scummvm/trunk/engines/kyra/sound.cpp 2006-08-01 03:29:32 UTC (rev 23650)
@@ -345,7 +345,6 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list