[Scummvm-cvs-logs] SF.net SVN: scummvm:[47688] scummvm/trunk/engines/sci/sound/midiparser_sci. cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Jan 30 00:08:12 CET 2010


Revision: 47688
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47688&view=rev
Author:   thebluegr
Date:     2010-01-29 23:08:12 +0000 (Fri, 29 Jan 2010)

Log Message:
-----------
Disabled the MIDI volume changing code till we figure out why it's getting volume values greater than 127

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sound/midiparser_sci.cpp

Modified: scummvm/trunk/engines/sci/sound/midiparser_sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/midiparser_sci.cpp	2010-01-29 22:56:39 UTC (rev 47687)
+++ scummvm/trunk/engines/sci/sound/midiparser_sci.cpp	2010-01-29 23:08:12 UTC (rev 47688)
@@ -524,6 +524,8 @@
 }
 
 void MidiParser_SCI::setVolume(byte volume) {
+	// FIXME: This receives values > 127, so it has been disabled for now
+#if 0
 	assert(volume <= MUSIC_VOLUME_MAX);
 	if (_volume != volume) {
 		_volume = volume;
@@ -548,6 +550,7 @@
 			error("MidiParser_SCI::setVolume: Unsupported soundVersion");
 		}
 	}
+#endif
 }
 
 } // End of namespace Sci


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