Module: wine Branch: master Commit: 65e388137c6117aaf8f99cef808d32afa29c7639 URL: https://gitlab.winehq.org/wine/wine/-/commit/65e388137c6117aaf8f99cef808d32a...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Oct 16 20:12:03 2023 +0200
dmime: Adjust MIDI message time with DMUS_NOTE_PMSG nOffset.
---
dlls/dmime/performance.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index ea2a3cc52dd..8ea01b168d7 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -1700,6 +1700,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, 0x90 /* NOTE_ON */, note->bMidiValue, note->bVelocity))) WARN("Failed to translate message to MIDI, hr %#lx\n", hr);