aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJamieson Christian2003-05-15 14:16:12 +0000
committerJamieson Christian2003-05-15 14:16:12 +0000
commit7e7719fd16fe5b4e753f3e6930d739edb8d8da3e (patch)
treee0f0177f6f8c19a0b702bedd2292041ea9832ea9 /backends
parent33c8c2fae831c7ff6af61a7d9575ab2dd5af5d57 (diff)
downloadscummvm-rg350-7e7719fd16fe5b4e753f3e6930d739edb8d8da3e.tar.gz
scummvm-rg350-7e7719fd16fe5b4e753f3e6930d739edb8d8da3e.tar.bz2
scummvm-rg350-7e7719fd16fe5b4e753f3e6930d739edb8d8da3e.zip
Possible fix for Windows SysEx transmissions
svn-id: r7525
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/midi/windows.cpp b/backends/midi/windows.cpp
index 0bce6b8cb7..91cb3ccf87 100644
--- a/backends/midi/windows.cpp
+++ b/backends/midi/windows.cpp
@@ -66,6 +66,7 @@ int MidiDriver_WIN::open() {
void MidiDriver_WIN::close() {
_isOpen = false;
+ midiOutUnprepareHeader (_mo, &_streamHeader, sizeof (_streamHeader));
check_error(midiOutClose(_mo));
CloseHandle (_streamEvent);
}
@@ -105,7 +106,7 @@ void MidiDriver_WIN::sysEx (byte *msg, uint16 length)
_streamHeader.dwBufferLength = length + 2;
_streamHeader.dwBytesRecorded = length + 2;
_streamHeader.dwUser = 0;
- _streamHeader.dwFlags |= MHDR_ISSTRM;
+// _streamHeader.dwFlags |= MHDR_ISSTRM;
MMRESULT result = midiOutPrepareHeader (_mo, &_streamHeader, sizeof (_streamHeader));
if (result != MMSYSERR_NOERROR) {