|
|
@@ -184,11 +184,8 @@ JackWinMMEOutputPort::Execute() |
|
|
|
} |
|
|
|
MIDIHDR header; |
|
|
|
header.dwBufferLength = size; |
|
|
|
header.dwBytesRecorded = size; |
|
|
|
header.dwFlags = 0; |
|
|
|
header.dwOffset = 0; |
|
|
|
header.dwUser = 0; |
|
|
|
header.lpData = (LPSTR)data; |
|
|
|
header.lpData = (LPSTR) data; |
|
|
|
result = midiOutPrepareHeader(handle, &header, sizeof(MIDIHDR)); |
|
|
|
if (result != MMSYSERR_NOERROR) { |
|
|
|
WriteOutError("JackWinMMEOutputPort::Execute", |
|
|
@@ -215,7 +212,6 @@ JackWinMMEOutputPort::Execute() |
|
|
|
"midiOutUnprepareHeader", result); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
@@ -236,7 +232,7 @@ JackWinMMEOutputPort::HandleMessage(UINT message, DWORD_PTR param1, |
|
|
|
jack_info("JackWinMMEOutputPort::HandleMessage - MIDI device opened."); |
|
|
|
break; |
|
|
|
case MOM_POSITIONCB: |
|
|
|
LPMIDIHDR header = (LPMIDIHDR) param2; |
|
|
|
LPMIDIHDR header = (LPMIDIHDR) param1; |
|
|
|
jack_info("JackWinMMEOutputPort::HandleMessage - %d bytes out of %d " |
|
|
|
"bytes of the current sysex message have been sent.", |
|
|
|
header->dwOffset, header->dwBytesRecorded); |
|
|
|