wineoss: Make the MIM_LONGDATA time relative to the start time.

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:
Huw Davies 2022-04-28 08:51:13 -05:00 committed by Alexandre Julliard
parent 46c3fd9a7d
commit 718c52cfd9
1 changed files with 2 additions and 1 deletions

View File

@ -300,7 +300,6 @@ static void handle_regular_data(struct midi_src *src, unsigned char value, UINT
if (to_send) if (to_send)
{ {
src->incLen = 0; src->incLen = 0;
time -= src->startTime;
MIDI_NotifyClient(src - MidiInDev, MIM_DATA, to_send, time); MIDI_NotifyClient(src - MidiInDev, MIM_DATA, to_send, time);
} }
} }
@ -321,6 +320,8 @@ static void midReceiveChar(WORD wDevID, unsigned char value, DWORD dwTime)
return; return;
} }
dwTime -= MidiInDev[wDevID].startTime;
if (value == 0xf0 || MidiInDev[wDevID].state & 2) /* system exclusive */ if (value == 0xf0 || MidiInDev[wDevID].state & 2) /* system exclusive */
handle_sysex_data(MidiInDev + wDevID, value, dwTime); handle_sysex_data(MidiInDev + wDevID, value, dwTime);
else else