mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
dmime: Adjust MIDI message time with DMUS_NOTE_PMSG nOffset.
This commit is contained in:
parent
5a66857fb4
commit
65e388137c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue