[Scummvm-cvs-logs] CVS: scummvm/backends/midi alsa.cpp,1.9,1.10

Jonathan Gray khalek at users.sourceforge.net
Sat May 31 20:40:06 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv13878

Modified Files:
	alsa.cpp 
Log Message:
actually sending the event helps too

Index: alsa.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/alsa.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- alsa.cpp	1 Jun 2003 03:25:14 -0000	1.9
+++ alsa.cpp	1 Jun 2003 03:39:44 -0000	1.10
@@ -30,7 +30,6 @@
 #include "stdafx.h"
 #include "common/engine.h"	// for warning/error/debug
 #include <alsa/asoundlib.h>
-#include "common/util.h" // for hexdump
 
 /*
  *     ALSA sequencer driver
@@ -195,10 +194,10 @@
 		return;
 	}
 	buf[0] = 0xF0;
-	memcpy(&buf[1], msg, length);
+	memcpy(buf + 1, msg, length);
 	buf[length + 1] = 0xF7;
-	// hexdump(buf, length + 2);
 	snd_seq_ev_set_sysex(&ev, length + 2, &buf);
+	send_event(1);
 }
 
 int MidiDriver_ALSA::parse_addr(char *arg, int *client, int *port) {





More information about the Scummvm-git-logs mailing list