Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2c08013b
Commit
2c08013b
authored
Nov 11, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Preserve event order when positions are equal.
Fixes hanging notes that occur when noteon gets reordered with noteoff.
parent
bb7b4964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
synth.c
dlls/dmsynth/synth.c
+1
-1
No files found.
dlls/dmsynth/synth.c
View file @
2c08013b
...
@@ -977,7 +977,7 @@ static HRESULT WINAPI synth_PlayBuffer(IDirectMusicSynth8 *iface,
...
@@ -977,7 +977,7 @@ static HRESULT WINAPI synth_PlayBuffer(IDirectMusicSynth8 *iface,
EnterCriticalSection
(
&
This
->
cs
);
EnterCriticalSection
(
&
This
->
cs
);
LIST_FOR_EACH_ENTRY
(
next_event
,
&
This
->
events
,
struct
event
,
entry
)
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
);
list_add_before
(
&
next_event
->
entry
,
&
event
->
entry
);
LeaveCriticalSection
(
&
This
->
cs
);
LeaveCriticalSection
(
&
This
->
cs
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment