[Scummvm-cvs-logs] SF.net SVN: scummvm:[55256] scummvm/trunk/sound/midiparser.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Jan 16 12:02:50 CET 2011
Revision: 55256
http://scummvm.svn.sourceforge.net/scummvm/?rev=55256&view=rev
Author: thebluegr
Date: 2011-01-16 11:02:49 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
MIDI parser: Stop hanging notes when a notes off event is called
This is the same fix as the one in r54429 for the MIDI parser of the SCI engine, based
on patch #3116608. Probably fixes (or is indirectly related to) bugs #2825928 (for
MADE), #2948281 (for SAGA), #2797283 (for tinsel), #2016549 (for SCUMM) and #2138118
(for kyra), as these engines are all using the MidiParser class internally.
Modified Paths:
--------------
scummvm/trunk/sound/midiparser.cpp
Modified: scummvm/trunk/sound/midiparser.cpp
===================================================================
--- scummvm/trunk/sound/midiparser.cpp 2011-01-16 08:15:47 UTC (rev 55255)
+++ scummvm/trunk/sound/midiparser.cpp 2011-01-16 11:02:49 UTC (rev 55256)
@@ -281,6 +281,7 @@
for (i = 0; i < 16; ++i) {
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