aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {