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
1014bab9
Commit
1014bab9
authored
Oct 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Use latency time to decide when to process messages.
parent
d0f54466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
performance.c
dlls/dmime/performance.c
+4
-4
No files found.
dlls/dmime/performance.c
View file @
1014bab9
...
...
@@ -89,10 +89,10 @@ static HRESULT performance_process_message(struct performance *This, DMUS_PMSG *
do
{
REFERENCE_TIME
current
,
offset
=
0
;
REFERENCE_TIME
latency
,
offset
=
0
;
IDirectMusicTool
*
tool
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_Get
Time
(
performance
,
&
current
,
NULL
)))
return
hr
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_Get
LatencyTime
(
performance
,
&
latency
)))
return
hr
;
if
(
!
(
tool
=
msg
->
pTool
))
tool
=
&
This
->
IDirectMusicTool_iface
;
switch
(
msg
->
dwFlags
&
delivery_flags
)
...
...
@@ -107,9 +107,9 @@ static HRESULT performance_process_message(struct performance *This, DMUS_PMSG *
offset
=
This
->
dwBumperLength
*
10000
;
/* fallthrough */
case
DMUS_PMSGF_TOOL_ATTIME
:
if
(
msg
->
rtTime
>=
offset
&&
msg
->
rtTime
-
offset
>=
current
)
if
(
msg
->
rtTime
>=
offset
&&
msg
->
rtTime
-
offset
>=
latency
)
{
if
(
timeout
)
*
timeout
=
(
msg
->
rtTime
-
offset
-
current
)
/
10000
;
if
(
timeout
)
*
timeout
=
(
msg
->
rtTime
-
offset
-
latency
)
/
10000
;
return
DMUS_S_REQUEUE
;
}
...
...
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