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
1cf8f92a
Commit
1cf8f92a
authored
Oct 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmband: Support start_time and end_time Play parameters.
parent
0b98e472
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
bandtrack.c
dlls/dmband/bandtrack.c
+10
-6
No files found.
dlls/dmband/bandtrack.c
View file @
1cf8f92a
...
...
@@ -159,7 +159,7 @@ static HRESULT WINAPI band_track_EndPlay(IDirectMusicTrack8 *iface, void *state_
}
static
HRESULT
WINAPI
band_track_Play
(
IDirectMusicTrack8
*
iface
,
void
*
state_data
,
MUSIC_TIME
start_time
,
MUSIC_TIME
end_time
,
MUSIC_TIME
time_offset
,
DWORD
segment
_flags
,
MUSIC_TIME
start_time
,
MUSIC_TIME
end_time
,
MUSIC_TIME
time_offset
,
DWORD
track
_flags
,
IDirectMusicPerformance
*
performance
,
IDirectMusicSegmentState
*
segment_state
,
DWORD
track_id
)
{
struct
band_track
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
...
...
@@ -168,13 +168,11 @@ static HRESULT WINAPI band_track_Play(IDirectMusicTrack8 *iface, void *state_dat
HRESULT
hr
;
TRACE
(
"(%p, %p, %ld, %ld, %ld, %#lx, %p, %p, %ld)
\n
"
,
This
,
state_data
,
start_time
,
end_time
,
time_offset
,
segment
_flags
,
performance
,
segment_state
,
track_id
);
time_offset
,
track
_flags
,
performance
,
segment_state
,
track_id
);
if
(
!
performance
)
return
DMUS_S_END
;
if
(
start_time
!=
0
)
FIXME
(
"start_time %ld not implemented
\n
"
,
start_time
);
if
(
end_time
!=
-
1
)
FIXME
(
"end_time %ld not implemented
\n
"
,
end_time
);
if
(
segment_flags
)
FIXME
(
"segment_flags %#lx not implemented
\n
"
,
segment_flags
);
if
(
track_flags
)
FIXME
(
"track_flags %#lx not implemented
\n
"
,
track_flags
);
if
(
segment_state
)
FIXME
(
"segment_state %p not implemented
\n
"
,
segment_state
);
if
(
FAILED
(
hr
=
IDirectMusicPerformance_QueryInterface
(
performance
,
...
...
@@ -184,7 +182,13 @@ static HRESULT WINAPI band_track_Play(IDirectMusicTrack8 *iface, void *state_dat
LIST_FOR_EACH_ENTRY
(
entry
,
&
This
->
bands
,
struct
band_entry
,
entry
)
{
MUSIC_TIME
music_time
=
entry
->
head
.
lBandTimeLogical
;
if
(
music_time
!=
-
1
)
music_time
+=
time_offset
;
if
(
music_time
==
-
1
&&
!
(
track_flags
&
DMUS_TRACKF_START
))
continue
;
else
if
(
music_time
!=
-
1
)
{
if
(
music_time
<
start_time
||
music_time
>=
end_time
)
continue
;
music_time
+=
time_offset
;
}
if
(
FAILED
(
hr
=
band_send_messages
(
entry
->
band
,
performance
,
graph
,
music_time
,
track_id
)))
break
;
}
...
...
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