[Scummvm-cvs-logs] SF.net SVN: scummvm:[54498] scummvm/trunk/engines/sci/sound/drivers/midi. cpp

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Fri Nov 26 15:35:28 CET 2010


Revision: 54498
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54498&view=rev
Author:   waltervn
Date:     2010-11-26 14:35:28 +0000 (Fri, 26 Nov 2010)

Log Message:
-----------
SCI: Only filter channels for early SCI0, as GM currently uses all channels.

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

Modified: scummvm/trunk/engines/sci/sound/drivers/midi.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/drivers/midi.cpp	2010-11-26 14:28:33 UTC (rev 54497)
+++ scummvm/trunk/engines/sci/sound/drivers/midi.cpp	2010-11-26 14:35:28 UTC (rev 54498)
@@ -325,8 +325,10 @@
 	// In early SCI0, we may also get events for AdLib rhythm channels.
 	// While an MT-32 would ignore those with the default channel mapping,
 	// we filter these out for the benefit of other MIDI devices.
-	if (channel < 1 || channel > 9)
-		return;
+	if (_version == SCI_VERSION_0_EARLY) {
+		if (channel < 1 || channel > 9)
+			return;
+	}
 
 	switch (command) {
 	case 0x80:


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