Module: wine Branch: master Commit: 9ad97f69b4b25e439284925aca927d25a4c9dfde URL: https://gitlab.winehq.org/wine/wine/-/commit/9ad97f69b4b25e439284925aca927d2...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sun Oct 22 15:51:05 2023 +0200
dmime: Force recompute MIDI message reference time.
Fixes 65e388137c6117aaf8f99cef808d32afa29c7639, which is otherwise no-op without this change.
---
dlls/dmime/performance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index a2e611523a6..e0da0516c79 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -1706,7 +1706,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface, DMUS_NOTE_PMSG *note = (DMUS_NOTE_PMSG *)msg;
msg->mtTime += note->nOffset; - if (FAILED(hr = performance_send_midi_pmsg(This, msg, DMUS_PMSGF_REFTIME | DMUS_PMSGF_MUSICTIME | DMUS_PMSGF_TOOL_IMMEDIATE, + if (FAILED(hr = performance_send_midi_pmsg(This, msg, DMUS_PMSGF_MUSICTIME | DMUS_PMSGF_TOOL_IMMEDIATE, MIDI_NOTE_ON, note->bMidiValue, note->bVelocity))) WARN("Failed to translate message to MIDI, hr %#lx\n", hr);