[Scummvm-cvs-logs] CVS: scummvm/sound/softsynth adlib.cpp,1.2,1.3

Travis Howell kirben at users.sourceforge.net
Mon Jan 3 03:34:12 CET 2005


Update of /cvsroot/scummvm/scummvm/sound/softsynth
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27288/sound/softsynth

Modified Files:
	adlib.cpp 
Log Message:

Add missing control changes, patch #1094825.


Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/adlib.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- adlib.cpp	1 Jan 2005 16:09:23 -0000	1.2
+++ adlib.cpp	3 Jan 2005 11:33:12 -0000	1.3
@@ -669,6 +669,7 @@
 
 void AdlibPart::controlChange(byte control, byte value) {
 	switch (control) {
+	case 0:   break; // Bank select. Not supported
 	case 1:   modulationWheel(value); break;
 	case 7:   volume(value); break;
 	case 10:  break; // Pan position. Not supported.
@@ -679,10 +680,15 @@
 	case 91:  break; // Effects level. Not supported.
 	case 93:  break; // Chorus level. Not supported.
 	case 119: break; // Unknown, used in Simon the Sorcerer 2
-	case 121: break; // Unknown, used in Simon the Sorcerer 1
+	case 121: // reset all controllers
+		modulationWheel(0);
+		pitchBendFactor(0);
+		detune(0);
+		sustain(0);
+		break;
 	case 123: allNotesOff(); break;
 	default:
-		warning("Adlib: Unknown control change message %d", (int) control);
+		warning("Adlib: Unknown control change message %d (%d)", (int) control, (int)value);
 	}
 }
 





More information about the Scummvm-git-logs mailing list