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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Nov 23 17:03:31 CET 2010


Revision: 54429
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54429&view=rev
Author:   thebluegr
Date:     2010-11-23 16:03:30 +0000 (Tue, 23 Nov 2010)

Log Message:
-----------
SCI: Also send a sustain off on a notes off event (patch from bug #3116608)

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-11-23 15:47:54 UTC (rev 54428)
+++ scummvm/trunk/engines/sci/sound/midiparser_sci.cpp	2010-11-23 16:03:30 UTC (rev 54429)
@@ -653,8 +653,10 @@
 	// support this...).
 
 	for (i = 0; i < 16; ++i) {
-		if (_channelRemap[i] != -1)
+		if (_channelRemap[i] != -1) {
 			sendToDriver(0xB0 | i, 0x7b, 0); // All notes off
+			sendToDriver(0xB0 | i, 0x40, 0); // Also send a sustain off event (bug #3116608)
+		}
 	}
 
 	memset(_active_notes, 0, sizeof(_active_notes));


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