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
d4233399
Commit
d4233399
authored
Dec 03, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Partial implementation of the Wave track Get/SetParam.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d827b652
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
10 deletions
+41
-10
dmime.c
dlls/dmime/tests/dmime.c
+3
-0
wavetrack.c
dlls/dmime/wavetrack.c
+38
-10
No files found.
dlls/dmime/tests/dmime.c
View file @
d4233399
...
...
@@ -709,6 +709,9 @@ static void test_track(void)
}
else
if
(
class
[
i
].
clsid
==
&
CLSID_DirectMusicMarkerTrack
)
expect_setparam
(
dmt
,
param_types
[
j
].
type
,
param_types
[
j
].
name
,
DMUS_E_SET_UNSUPPORTED
);
else
if
(
class
[
i
].
clsid
==
&
CLSID_DirectMusicWaveTrack
)
expect_getparam
(
dmt
,
param_types
[
j
].
type
,
param_types
[
j
].
name
,
DMUS_E_GET_UNSUPPORTED
);
}
else
ok
(
hr
==
DMUS_E_TYPE_UNSUPPORTED
,
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED
\n
"
,
...
...
dlls/dmime/wavetrack.c
View file @
d4233399
...
...
@@ -120,20 +120,48 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *pStateDat
return
S_OK
;
}
static
HRESULT
WINAPI
wave_track_GetParam
(
IDirectMusicTrack8
*
iface
,
REFGUID
rguidTyp
e
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pP
aram
)
static
HRESULT
WINAPI
wave_track_GetParam
(
IDirectMusicTrack8
*
iface
,
REFGUID
type
,
MUSIC_TIME
tim
e
,
MUSIC_TIME
*
next
,
void
*
p
aram
)
{
IDirectMusicWaveTrack
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
FIXME
(
"(%p, %s, %d, %p, %p): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidType
),
mtTime
,
pmtNext
,
pParam
);
return
S_OK
;
IDirectMusicWaveTrack
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
TRACE
(
"(%p, %s, %d, %p, %p): not supported
\n
"
,
This
,
debugstr_dmguid
(
type
),
time
,
next
,
param
);
return
DMUS_E_GET_UNSUPPORTED
;
}
static
HRESULT
WINAPI
wave_track_SetParam
(
IDirectMusicTrack8
*
iface
,
REFGUID
rguidTyp
e
,
MUSIC_TIME
mtTime
,
void
*
pP
aram
)
static
HRESULT
WINAPI
wave_track_SetParam
(
IDirectMusicTrack8
*
iface
,
REFGUID
type
,
MUSIC_TIME
tim
e
,
void
*
p
aram
)
{
IDirectMusicWaveTrack
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
FIXME
(
"(%p, %s, %d, %p): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidType
),
mtTime
,
pParam
);
return
S_OK
;
IDirectMusicWaveTrack
*
This
=
impl_from_IDirectMusicTrack8
(
iface
);
TRACE
(
"(%p, %s, %d, %p)
\n
"
,
This
,
debugstr_dmguid
(
type
),
time
,
param
);
if
(
IsEqualGUID
(
type
,
&
GUID_Disable_Auto_Download
))
{
FIXME
(
"GUID_Disable_Auto_Download not handled yet
\n
"
);
return
S_OK
;
}
if
(
IsEqualGUID
(
type
,
&
GUID_Download
))
{
FIXME
(
"GUID_Download not handled yet
\n
"
);
return
S_OK
;
}
if
(
IsEqualGUID
(
type
,
&
GUID_DownloadToAudioPath
))
{
FIXME
(
"GUID_DownloadToAudioPath not handled yet
\n
"
);
return
S_OK
;
}
if
(
IsEqualGUID
(
type
,
&
GUID_Enable_Auto_Download
))
{
FIXME
(
"GUID_Enable_Auto_Download not handled yet
\n
"
);
return
S_OK
;
}
if
(
IsEqualGUID
(
type
,
&
GUID_Unload
))
{
FIXME
(
"GUID_Unload not handled yet
\n
"
);
return
S_OK
;
}
if
(
IsEqualGUID
(
type
,
&
GUID_UnloadFromAudioPath
))
{
FIXME
(
"GUID_UnloadFromAudioPath not handled yet
\n
"
);
return
S_OK
;
}
return
DMUS_E_TYPE_UNSUPPORTED
;
}
static
HRESULT
WINAPI
wave_track_IsParamSupported
(
IDirectMusicTrack8
*
iface
,
REFGUID
type
)
...
...
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