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>
This commit is contained in:
parent
d827b65204
commit
d423339960
|
@ -709,6 +709,9 @@ static void test_track(void)
|
||||||
} else if (class[i].clsid == &CLSID_DirectMusicMarkerTrack)
|
} else if (class[i].clsid == &CLSID_DirectMusicMarkerTrack)
|
||||||
expect_setparam(dmt, param_types[j].type, param_types[j].name,
|
expect_setparam(dmt, param_types[j].type, param_types[j].name,
|
||||||
DMUS_E_SET_UNSUPPORTED);
|
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
|
} 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",
|
||||||
|
|
|
@ -120,20 +120,48 @@ static HRESULT WINAPI wave_track_Play(IDirectMusicTrack8 *iface, void *pStateDat
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI wave_track_GetParam(IDirectMusicTrack8 *iface, REFGUID rguidType,
|
static HRESULT WINAPI wave_track_GetParam(IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time,
|
||||||
MUSIC_TIME mtTime, MUSIC_TIME *pmtNext, void *pParam)
|
MUSIC_TIME *next, void *param)
|
||||||
{
|
{
|
||||||
IDirectMusicWaveTrack *This = impl_from_IDirectMusicTrack8(iface);
|
IDirectMusicWaveTrack *This = impl_from_IDirectMusicTrack8(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): not supported\n", This, debugstr_dmguid(type), time, next, param);
|
||||||
|
return DMUS_E_GET_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI wave_track_SetParam(IDirectMusicTrack8 *iface, REFGUID rguidType,
|
static HRESULT WINAPI wave_track_SetParam(IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time,
|
||||||
MUSIC_TIME mtTime, void *pParam)
|
void *param)
|
||||||
{
|
{
|
||||||
IDirectMusicWaveTrack *This = impl_from_IDirectMusicTrack8(iface);
|
IDirectMusicWaveTrack *This = impl_from_IDirectMusicTrack8(iface);
|
||||||
FIXME("(%p, %s, %d, %p): stub\n", This, debugstr_dmguid(rguidType), mtTime, pParam);
|
|
||||||
return S_OK;
|
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)
|
static HRESULT WINAPI wave_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID type)
|
||||||
|
|
Loading…
Reference in New Issue