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
60538c57
Commit
60538c57
authored
Oct 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Use the current time if PlaySegmentEx start_time is 0.
parent
a429a3fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
performance.c
dlls/dmime/performance.c
+10
-9
No files found.
dlls/dmime/performance.c
View file @
60538c57
...
...
@@ -1203,8 +1203,8 @@ static HRESULT WINAPI performance_PlaySegmentEx(IDirectMusicPerformance8 *iface,
{
struct
performance
*
This
=
impl_from_IDirectMusicPerformance8
(
iface
);
IDirectMusicSegmentState
*
state
;
MUSIC_TIME
length
,
music_time
;
IDirectMusicSegment
*
segment
;
MUSIC_TIME
length
;
HRESULT
hr
;
FIXME
(
"(%p, %p, %s, %p, %#lx, %I64d, %p, %p, %p): stub
\n
"
,
This
,
source
,
debugstr_w
(
segment_name
),
...
...
@@ -1216,7 +1216,8 @@ static HRESULT WINAPI performance_PlaySegmentEx(IDirectMusicPerformance8 *iface,
if
(
FAILED
(
hr
=
IUnknown_QueryInterface
(
source
,
&
IID_IDirectMusicSegment
,
(
void
**
)
&
segment
)))
return
hr
;
if
(
FAILED
(
hr
=
segment_state_create
(
segment
,
start_time
,
iface
,
&
state
)))
if
((
!
(
music_time
=
start_time
)
&&
FAILED
(
hr
=
IDirectMusicPerformance8_GetTime
(
iface
,
NULL
,
&
music_time
)))
||
FAILED
(
hr
=
segment_state_create
(
segment
,
music_time
,
iface
,
&
state
)))
{
IDirectMusicSegment_Release
(
segment
);
return
hr
;
...
...
@@ -1224,27 +1225,27 @@ static HRESULT WINAPI performance_PlaySegmentEx(IDirectMusicPerformance8 *iface,
hr
=
IDirectMusicSegment_GetLength
(
segment
,
&
length
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_notification_pmsg
(
This
,
start
_time
,
This
->
notification_performance
,
hr
=
performance_send_notification_pmsg
(
This
,
music
_time
,
This
->
notification_performance
,
GUID_NOTIFICATION_PERFORMANCE
,
DMUS_NOTIFICATION_MUSICSTARTED
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_notification_pmsg
(
This
,
start
_time
,
This
->
notification_segment
,
hr
=
performance_send_notification_pmsg
(
This
,
music
_time
,
This
->
notification_segment
,
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGSTART
,
(
IUnknown
*
)
state
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_pmsg
(
This
,
start
_time
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
DMUS_PMSGT_DIRTY
,
NULL
);
hr
=
performance_send_pmsg
(
This
,
music
_time
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
DMUS_PMSGT_DIRTY
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
segment_state_play
(
state
,
iface
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_notification_pmsg
(
This
,
start
_time
+
length
,
This
->
notification_segment
,
hr
=
performance_send_notification_pmsg
(
This
,
music
_time
+
length
,
This
->
notification_segment
,
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGEND
,
(
IUnknown
*
)
state
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_notification_pmsg
(
This
,
start
_time
+
length
,
This
->
notification_segment
,
hr
=
performance_send_notification_pmsg
(
This
,
music
_time
+
length
,
This
->
notification_segment
,
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGALMOSTEND
,
(
IUnknown
*
)
state
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_pmsg
(
This
,
start
_time
+
length
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
DMUS_PMSGT_DIRTY
,
NULL
);
hr
=
performance_send_pmsg
(
This
,
music
_time
+
length
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
DMUS_PMSGT_DIRTY
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
performance_send_notification_pmsg
(
This
,
start
_time
+
length
,
This
->
notification_performance
,
hr
=
performance_send_notification_pmsg
(
This
,
music
_time
+
length
,
This
->
notification_performance
,
GUID_NOTIFICATION_PERFORMANCE
,
DMUS_NOTIFICATION_MUSICSTOPPED
,
NULL
);
if
(
SUCCEEDED
(
hr
)
&&
segment_state
)
...
...
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