Commit 2c08013b authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

dmsynth: Preserve event order when positions are equal.

Fixes hanging notes that occur when noteon gets reordered with noteoff.
parent bb7b4964
......@@ -977,7 +977,7 @@ static HRESULT WINAPI synth_PlayBuffer(IDirectMusicSynth8 *iface,
EnterCriticalSection(&This->cs);
LIST_FOR_EACH_ENTRY(next_event, &This->events, struct event, entry)
if (next_event->position >= event->position) break;
if (next_event->position > event->position) break;
list_add_before(&next_event->entry, &event->entry);
LeaveCriticalSection(&This->cs);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment