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
ed92095f
Commit
ed92095f
authored
Jan 22, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Fully implement IDirectMusicSegmentState::GetRepeats().
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
c1295953
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
segmentstate.c
dlls/dmime/segmentstate.c
+6
-4
dmime.c
dlls/dmime/tests/dmime.c
+0
-3
No files found.
dlls/dmime/segmentstate.c
View file @
ed92095f
...
...
@@ -53,7 +53,7 @@ struct segment_state
MUSIC_TIME
end_point
;
MUSIC_TIME
played
;
BOOL
auto_download
;
DWORD
repeats
;
DWORD
repeats
,
actual_repeats
;
struct
list
tracks
;
};
...
...
@@ -117,7 +117,8 @@ static ULONG WINAPI segment_state_Release(IDirectMusicSegmentState8 *iface)
static
HRESULT
WINAPI
segment_state_GetRepeats
(
IDirectMusicSegmentState8
*
iface
,
DWORD
*
repeats
)
{
struct
segment_state
*
This
=
impl_from_IDirectMusicSegmentState8
(
iface
);
FIXME
(
"(%p, %p): semi-stub
\n
"
,
This
,
repeats
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
repeats
);
*
repeats
=
This
->
repeats
;
return
S_OK
;
}
...
...
@@ -236,6 +237,7 @@ HRESULT segment_state_create(IDirectMusicSegment *segment, MUSIC_TIME start_time
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicSegment_GetStartPoint
(
segment
,
&
This
->
start_point
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicSegment_GetLength
(
segment
,
&
This
->
end_point
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirectMusicSegment_GetRepeats
(
segment
,
&
This
->
repeats
);
if
(
SUCCEEDED
(
hr
))
This
->
actual_repeats
=
This
->
repeats
;
for
(
i
=
0
;
SUCCEEDED
(
hr
);
i
++
)
{
...
...
@@ -315,7 +317,7 @@ static HRESULT segment_state_play_chunk(struct segment_state *This, IDirectMusic
while
((
hr
=
segment_state_play_until
(
This
,
performance
,
next_time
,
track_flags
))
==
S_FALSE
)
{
if
(
!
This
->
repeats
)
if
(
!
This
->
actual_
repeats
)
{
MUSIC_TIME
end_time
=
This
->
start_time
+
This
->
played
;
...
...
@@ -332,7 +334,7 @@ static HRESULT segment_state_play_chunk(struct segment_state *This, IDirectMusic
&
This
->
end_point
)))
break
;
This
->
start_time
+=
This
->
end_point
-
This
->
start_point
;
This
->
repeats
--
;
This
->
actual_
repeats
--
;
if
(
next_time
<=
This
->
start_time
||
This
->
end_point
<=
This
->
start_point
)
break
;
}
...
...
dlls/dmime/tests/dmime.c
View file @
ed92095f
...
...
@@ -4540,7 +4540,6 @@ static void test_segment_state(void)
value
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetRepeats
(
state
,
&
value
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
value
==
0
,
"got %#lx
\n
"
,
value
);
time
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetStartTime
(
state
,
&
time
);
...
...
@@ -4624,7 +4623,6 @@ static void test_segment_state(void)
value
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetRepeats
(
state
,
&
value
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
value
==
0
,
"got %#lx
\n
"
,
value
);
time
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetStartTime
(
state
,
&
time
);
...
...
@@ -4655,7 +4653,6 @@ static void test_segment_state(void)
value
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetRepeats
(
state
,
&
value
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
value
==
0
,
"got %#lx
\n
"
,
value
);
time
=
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_GetStartTime
(
state
,
&
time
);
...
...
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