wineoss: Add the leading 0xf0 to the sysex data.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9a7924a687
commit
aa99a9f175
|
@ -228,10 +228,12 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MidiInDev[wDevID].state & 2) { /* system exclusive */
|
if (value == 0xf0 || MidiInDev[wDevID].state & 2) { /* system exclusive */
|
||||||
LPMIDIHDR lpMidiHdr;
|
LPMIDIHDR lpMidiHdr;
|
||||||
BOOL sbfb = FALSE;
|
BOOL sbfb = FALSE;
|
||||||
|
|
||||||
|
MidiInDev[wDevID].state |= 2;
|
||||||
|
MidiInDev[wDevID].incLen = 0;
|
||||||
in_buffer_lock();
|
in_buffer_lock();
|
||||||
if ((lpMidiHdr = MidiInDev[wDevID].lpQueueHdr) != NULL) {
|
if ((lpMidiHdr = MidiInDev[wDevID].lpQueueHdr) != NULL) {
|
||||||
LPBYTE lpData = (LPBYTE) lpMidiHdr->lpData;
|
LPBYTE lpData = (LPBYTE) lpMidiHdr->lpData;
|
||||||
|
@ -300,14 +302,8 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MIDI_SYSTEM_PREFIX:
|
case MIDI_SYSTEM_PREFIX:
|
||||||
if (MidiInDev[wDevID].incoming[0] == 0xF0) {
|
if (MidiInDev[wDevID].incLen == 1)
|
||||||
MidiInDev[wDevID].state |= 2;
|
|
||||||
MidiInDev[wDevID].incLen = 0;
|
|
||||||
} else {
|
|
||||||
if (MidiInDev[wDevID].incLen == 1) {
|
|
||||||
toSend = (MidiInDev[wDevID].incoming[0] << 0);
|
toSend = (MidiInDev[wDevID].incoming[0] << 0);
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WARN("This shouldn't happen (%02X)\n", MidiInDev[wDevID].incoming[0]);
|
WARN("This shouldn't happen (%02X)\n", MidiInDev[wDevID].incoming[0]);
|
||||||
|
|
Loading…
Reference in New Issue