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
63661495
Commit
63661495
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
dmime: Support start_time and end_time Play parameters.
parent
1cf8f92a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
seqtrack.c
dlls/dmime/seqtrack.c
+6
-2
wavetrack.c
dlls/dmime/wavetrack.c
+6
-5
No files found.
dlls/dmime/seqtrack.c
View file @
63661495
...
...
@@ -120,8 +120,6 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
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
);
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
(
segment_state
)
FIXME
(
"segment_state %p not implemented
\n
"
,
segment_state
);
...
...
@@ -134,6 +132,9 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
DMUS_IO_SEQ_ITEM
*
item
=
This
->
items
+
i
;
DMUS_NOTE_PMSG
*
msg
;
if
(
item
->
mtTime
<
start_time
)
continue
;
if
(
item
->
mtTime
>=
end_time
)
continue
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_AllocPMsg
(
performance
,
sizeof
(
*
msg
),
(
DMUS_PMSG
**
)
&
msg
)))
break
;
...
...
@@ -164,6 +165,9 @@ static HRESULT WINAPI sequence_track_Play(IDirectMusicTrack8 *iface, void *state
DMUS_IO_CURVE_ITEM
*
item
=
This
->
curve_items
+
i
;
DMUS_CURVE_PMSG
*
msg
;
if
(
item
->
mtStart
<
start_time
)
continue
;
if
(
item
->
mtStart
>=
end_time
)
continue
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_AllocPMsg
(
performance
,
sizeof
(
*
msg
),
(
DMUS_PMSG
**
)
&
msg
)))
break
;
...
...
dlls/dmime/wavetrack.c
View file @
63661495
...
...
@@ -144,7 +144,7 @@ static HRESULT WINAPI wave_track_EndPlay(IDirectMusicTrack8 *iface, void *pState
}
static
HRESULT
WINAPI
wave_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
wave_track
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
...
...
@@ -155,12 +155,11 @@ static HRESULT WINAPI wave_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
(
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
(
!
(
track_flags
&
DMUS_TRACKF_START
))
return
S_OK
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_QueryInterface
(
performance
,
&
IID_IDirectMusicGraph
,
(
void
**
)
&
graph
)))
...
...
@@ -175,6 +174,8 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *state_dat
DMUS_WAVE_PMSG
*
msg
;
if
(
!
item
->
buffer
)
continue
;
if
(
item
->
header
.
rtTime
<
start_time
)
continue
;
if
(
item
->
header
.
rtTime
>=
end_time
)
continue
;
if
(
FAILED
(
hr
=
IDirectMusicPerformance_AllocPMsg
(
performance
,
sizeof
(
*
msg
),
(
DMUS_PMSG
**
)
&
msg
)))
...
...
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