[Scummvm-cvs-logs] CVS: scummvm/sky/music gmchannel.cpp,1.17,1.18

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Thu Aug 26 06:52:51 CEST 2004


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

Modified Files:
	gmchannel.cpp 
Log Message:
Reset the "pitch wheel" when turning off a note. This should fix bug
#1016556, hopefully without causing regressions.


Index: gmchannel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/music/gmchannel.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- gmchannel.cpp	18 Jan 2004 20:11:52 -0000	1.17
+++ gmchannel.cpp	26 Aug 2004 13:51:06 -0000	1.18
@@ -59,7 +59,10 @@
 
 void GmChannel::stopNote(void) {
 
+	// All Notes Off
 	_midiDrv->send((0xB0 | _channelData.midiChannelNumber) | 0x7B00 | 0 | 0x79000000);
+	// Pitch Wheel
+	_midiDrv->send((0xE0 | _channelData.midiChannelNumber) | 0x400000);
 }
 
 int32 GmChannel::getNextEventTime(void) {





More information about the Scummvm-git-logs mailing list