[Scummvm-cvs-logs] CVS: scummvm/sky control.cpp,1.90,1.91

Eugene Sandulenko sev at users.sourceforge.net
Fri Mar 18 03:06:28 CET 2005


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21487

Modified Files:
	control.cpp 
Log Message:
Apply patch #1162546 "BASS: Hanging notes fix / patch". Thanks __tom.


Index: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/control.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- control.cpp	11 Mar 2005 10:51:18 -0000	1.90
+++ control.cpp	18 Mar 2005 11:05:14 -0000	1.91
@@ -1573,6 +1573,15 @@
 	_skyScreen->halvePalette();
 	_skyScreen->showScreen(screenData);
 	free(textBuf1); free(textBuf2);
+
+	// __tom (FIXME): This is a poor method of turning
+	// off music. ~GmMusic, ~AdlibMusic, and ~MT32Music
+	// should do it themselves so the appropriate MIDI
+	// controller events (e.g. 123/'All Notes Off') can
+	// be sent. However, that requires a re-write of
+	// other code and for now this fixes hanging notes
+	// on MT-32 + other external GMIDI synths.
+	_skyMusic->stopMusic();
 	delay(1500);
 	ConfMan.flushToDisk();
 	_system->quit();





More information about the Scummvm-git-logs mailing list