[Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.38,1.39
Jamieson Christian
jamieson630 at users.sourceforge.net
Tue Dec 17 23:49:02 CET 2002
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv32093/scummvm/sound
Modified Files:
mididrv.cpp
Log Message:
message.log
Index: mididrv.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mididrv.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mididrv.cpp 18 Dec 2002 07:37:47 -0000 1.38
+++ mididrv.cpp 18 Dec 2002 07:48:02 -0000 1.39
@@ -236,7 +236,7 @@
void MidiDriver_SEQ::sysEx (byte *msg, uint16 length)
{
- if (length > 256) {
+ if (length > 254) {
warning ("Cannot send SysEx block - data too large");
return;
}
@@ -247,12 +247,20 @@
// Should be we using EV_SYSEX instead of SEQ_MIDIPUTC?
// I'm not sure how to send EV_SYSEX.
+ buf[position++] = SEQ_MIDIPUTC;
+ buf[position++] = 0xFF;
+ buf[position++] = _device_num;
+ buf[position++] = 0;
for (; length; --length) {
buf[position++] = SEQ_MIDIPUTC;
buf[position++] = (unsigned char) *chr;
buf[position++] = _device_num;
buf[position++] = 0;
}
+ buf[position++] = SEQ_MIDIPUTC;
+ buf[position++] = 0xF7;
+ buf[position++] = _device_num;
+ buf[position++] = 0;
write (device, buf, position);
}
More information about the Scummvm-git-logs
mailing list