dmime: Adjust MIDI message time with DMUS_NOTE_PMSG nOffset.

This commit is contained in:
Rémi Bernon 2023-10-16 20:12:03 +02:00 committed by Alexandre Julliard
parent 5a66857fb4
commit 65e388137c

View file

@ -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);