aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/windows.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-30 04:42:30 +0000
committerJohannes Schickel2008-11-30 04:42:30 +0000
commit2ebe04ac3eda7bda56fc23c4958d3da84081429f (patch)
tree5f9e7e00873a9303deb754b39a42acef6dfddb5e /backends/midi/windows.cpp
parent17a699a43867dfb23c271a0f22a67176c0ce328c (diff)
downloadscummvm-rg350-2ebe04ac3eda7bda56fc23c4958d3da84081429f.tar.gz
scummvm-rg350-2ebe04ac3eda7bda56fc23c4958d3da84081429f.tar.bz2
scummvm-rg350-2ebe04ac3eda7bda56fc23c4958d3da84081429f.zip
- 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
Diffstat (limited to 'backends/midi/windows.cpp')
-rw-r--r--backends/midi/windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/windows.cpp b/backends/midi/windows.cpp
index d1f79f4fa3..f9da3e3e4d 100644
--- a/backends/midi/windows.cpp
+++ b/backends/midi/windows.cpp
@@ -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));