- Extended MidiDriver::sysEx to allow 264 byte sysEx messages

- Updated all drivers to allow 264+2 byte sysEx messages
- Implemented sysEx processing for MT-32 for Kyra1 and HoF. MT-32 should now be working properly.

svn-id: r35180
This commit is contained in:
Johannes Schickel 2008-11-30 04:42:30 +00:00
parent 17a699a438
commit 2ebe04ac3e
11 changed files with 54 additions and 38 deletions

View file

@ -42,7 +42,7 @@
class MidiDriver_WIN : public MidiDriver_MPU401 {
private:
MIDIHDR _streamHeader;
byte _streamBuffer[256]; // SysEx blocks should be no larger than 256 bytes
byte _streamBuffer[266]; // SysEx blocks should be no larger than 266 bytes
HANDLE _streamEvent;
HMIDIOUT _mo;
bool _isOpen;
@ -106,7 +106,7 @@ void MidiDriver_WIN::sysEx(const byte *msg, uint16 length) {
return;
}
assert(length+2 <= 256);
assert(length+2 <= 266);
midiOutUnprepareHeader(_mo, &_streamHeader, sizeof(_streamHeader));