diff options
| author | Jonathan Gray | 2003-06-01 03:39:44 +0000 | 
|---|---|---|
| committer | Jonathan Gray | 2003-06-01 03:39:44 +0000 | 
| commit | 738497ef1413e8148d445389ab65144997652934 (patch) | |
| tree | dcfff460c6d45fa2ae6d8c0ece420265f022b815 /backends/midi | |
| parent | 220c2f6389bd97014fb7c9a0c243f12ed6ca009e (diff) | |
| download | scummvm-rg350-738497ef1413e8148d445389ab65144997652934.tar.gz scummvm-rg350-738497ef1413e8148d445389ab65144997652934.tar.bz2 scummvm-rg350-738497ef1413e8148d445389ab65144997652934.zip  | |
actually sending the event helps too
svn-id: r8219
Diffstat (limited to 'backends/midi')
| -rw-r--r-- | backends/midi/alsa.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/midi/alsa.cpp b/backends/midi/alsa.cpp index ae67a85a95..e2458bf8ed 100644 --- a/backends/midi/alsa.cpp +++ b/backends/midi/alsa.cpp @@ -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 @@ void MidiDriver_ALSA::sysEx(byte *msg, uint16 length) {  		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) {  | 
