dmime: Partial implementation of the Marker track Get/SetParam.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d08bce15bc
commit
d827b65204
|
@ -117,20 +117,35 @@ static HRESULT WINAPI IDirectMusicTrackImpl_Play(IDirectMusicTrack *iface, void
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicTrackImpl_GetParam(IDirectMusicTrack *iface, REFGUID rguidType,
|
static HRESULT WINAPI IDirectMusicTrackImpl_GetParam(IDirectMusicTrack *iface, REFGUID type,
|
||||||
MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam)
|
MUSIC_TIME time, MUSIC_TIME *next, void *param)
|
||||||
{
|
{
|
||||||
IDirectMusicMarkerTrack *This = impl_from_IDirectMusicTrack(iface);
|
IDirectMusicMarkerTrack *This = impl_from_IDirectMusicTrack(iface);
|
||||||
FIXME("(%p, %s, %d, %p, %p): stub\n", This, debugstr_dmguid(rguidType), mtTime, pmtNext, pParam);
|
|
||||||
return S_OK;
|
TRACE("(%p, %s, %d, %p, %p)\n", This, debugstr_dmguid(type), time, next, param);
|
||||||
|
|
||||||
|
if (!param)
|
||||||
|
return E_POINTER;
|
||||||
|
|
||||||
|
if (IsEqualGUID(type, &GUID_Play_Marker)) {
|
||||||
|
FIXME("GUID_Play_Marker not handled yet\n");
|
||||||
|
return S_FALSE;
|
||||||
|
}
|
||||||
|
if (IsEqualGUID(type, &GUID_Valid_Start_Time)) {
|
||||||
|
FIXME("GUID_Valid_Start_Time not handled yet\n");
|
||||||
|
return DMUS_E_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicTrackImpl_SetParam(IDirectMusicTrack *iface, REFGUID rguidType,
|
return DMUS_E_GET_UNSUPPORTED;
|
||||||
MUSIC_TIME mtTime, void *pParam)
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI IDirectMusicTrackImpl_SetParam(IDirectMusicTrack *iface, REFGUID type,
|
||||||
|
MUSIC_TIME time, void *param)
|
||||||
{
|
{
|
||||||
IDirectMusicMarkerTrack *This = impl_from_IDirectMusicTrack(iface);
|
IDirectMusicMarkerTrack *This = impl_from_IDirectMusicTrack(iface);
|
||||||
FIXME("(%p, %s, %d, %p): stub\n", This, debugstr_dmguid(rguidType), mtTime, pParam);
|
|
||||||
return S_OK;
|
TRACE("(%p, %s, %d, %p): not supported\n", This, debugstr_dmguid(type), time, param);
|
||||||
|
return DMUS_E_SET_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicTrackImpl_IsParamSupported(IDirectMusicTrack *iface,
|
static HRESULT WINAPI IDirectMusicTrackImpl_IsParamSupported(IDirectMusicTrack *iface,
|
||||||
|
|
|
@ -706,7 +706,9 @@ static void test_track(void)
|
||||||
expect_getparam(dmt, param_types[j].type, param_types[j].name,
|
expect_getparam(dmt, param_types[j].type, param_types[j].name,
|
||||||
DMUS_E_GET_UNSUPPORTED);
|
DMUS_E_GET_UNSUPPORTED);
|
||||||
expect_setparam(dmt, param_types[j].type, param_types[j].name, S_OK);
|
expect_setparam(dmt, param_types[j].type, param_types[j].name, S_OK);
|
||||||
}
|
} else if (class[i].clsid == &CLSID_DirectMusicMarkerTrack)
|
||||||
|
expect_setparam(dmt, param_types[j].type, param_types[j].name,
|
||||||
|
DMUS_E_SET_UNSUPPORTED);
|
||||||
} else
|
} else
|
||||||
ok(hr == DMUS_E_TYPE_UNSUPPORTED,
|
ok(hr == DMUS_E_TYPE_UNSUPPORTED,
|
||||||
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED\n",
|
"IsParamSupported(%s) failed: %08x, expected DMUS_E_TYPE_UNSUPPORTED\n",
|
||||||
|
|
Loading…
Reference in New Issue