diff options
author | Johannes Schickel | 2008-11-30 04:42:30 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-30 04:42:30 +0000 |
commit | 2ebe04ac3eda7bda56fc23c4958d3da84081429f (patch) | |
tree | 5f9e7e00873a9303deb754b39a42acef6dfddb5e /backends/midi/coreaudio.cpp | |
parent | 17a699a43867dfb23c271a0f22a67176c0ce328c (diff) | |
download | scummvm-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/coreaudio.cpp')
-rw-r--r-- | backends/midi/coreaudio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/coreaudio.cpp b/backends/midi/coreaudio.cpp index 0d72a1576a..d89123292c 100644 --- a/backends/midi/coreaudio.cpp +++ b/backends/midi/coreaudio.cpp @@ -190,9 +190,9 @@ void MidiDriver_CORE::send(uint32 b) { } void MidiDriver_CORE::sysEx(const byte *msg, uint16 length) { - unsigned char buf[256]; + unsigned char buf[266]; - assert(length + 2 <= 256); + assert(length + 2 <= ARRAYSIZE(buf)); assert(_auGraph != NULL); // Add SysEx frame |