[Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.16,1.17

Jamieson Christian jamieson630 at users.sourceforge.net
Mon Oct 21 09:56:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv7005/scummvm/sound

Modified Files:
	mididrv.cpp 
Log Message:
Fixing the ALSA fix. ;)

Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- mididrv.cpp	21 Oct 2002 16:49:29 -0000	1.16
+++ mididrv.cpp	21 Oct 2002 16:55:26 -0000	1.17
@@ -1214,7 +1214,7 @@
 	case 0xE0:{
 			// long theBend = ((((long)midiCmd[1] + (long)(midiCmd[2] << 7))) - 0x2000) / 4;
 			// snd_seq_ev_set_pitchbend(&ev, chanID, theBend);
-			long theBend = (long)midiCmd[1] + (long)(midiCmd[2] << 7);
+			long theBend = ((long)midiCmd[1] + (long)(midiCmd[2] << 7)) - 0x2000;
 			snd_seq_ev_set_pitchbend(&ev, chanID, theBend);
 			send_event(1);
 		}





More information about the Scummvm-git-logs mailing list