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
8645d9eb
Commit
8645d9eb
authored
Sep 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Implement IDirectMusicSegment_SetParam.
parent
406f1783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
segment.c
dlls/dmime/segment.c
+20
-4
No files found.
dlls/dmime/segment.c
View file @
8645d9eb
...
...
@@ -392,12 +392,28 @@ static HRESULT WINAPI segment_GetParam(IDirectMusicSegment8 *iface, REFGUID type
return
hr
;
}
static
HRESULT
WINAPI
segment_SetParam
(
IDirectMusicSegment8
*
iface
,
REFGUID
rguidT
ype
,
DWORD
dwGroupBits
,
DWORD
dwIndex
,
MUSIC_TIME
mtTime
,
void
*
pP
aram
)
static
HRESULT
WINAPI
segment_SetParam
(
IDirectMusicSegment8
*
iface
,
REFGUID
t
ype
,
DWORD
group
,
DWORD
index
,
MUSIC_TIME
music_time
,
void
*
p
aram
)
{
struct
segment
*
This
=
impl_from_IDirectMusicSegment8
(
iface
);
FIXME
(
"(%p, %s, %#lx, %ld, %ld, %p): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidType
),
dwGroupBits
,
dwIndex
,
mtTime
,
pParam
);
struct
track_entry
*
entry
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %#lx, %ld, %ld, %p)
\n
"
,
This
,
debugstr_dmguid
(
type
),
group
,
index
,
music_time
,
param
);
LIST_FOR_EACH_ENTRY
(
entry
,
&
This
->
tracks
,
struct
track_entry
,
entry
)
{
if
(
group
!=
-
1
&&
!
(
group
&
entry
->
dwGroupBits
))
continue
;
if
(
index
!=
DMUS_SEG_ALLTRACKS
&&
index
--
)
continue
;
hr
=
IDirectMusicTrack_IsParamSupported
(
entry
->
pTrack
,
type
);
if
(
hr
==
DMUS_E_TYPE_UNSUPPORTED
)
continue
;
hr
=
IDirectMusicTrack_SetParam
(
entry
->
pTrack
,
type
,
music_time
,
param
);
if
(
FAILED
(
hr
))
break
;
}
return
S_OK
;
}
...
...
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