dmime: Partial implementation of the Tempo track SetParam().

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-12-03 23:51:24 +01:00 committed by Alexandre Julliard
parent 2ff339f9ad
commit dc96d1b155
1 changed files with 26 additions and 5 deletions

View File

@ -201,12 +201,33 @@ static HRESULT WINAPI tempo_track_GetParam(IDirectMusicTrack8 *iface, REFGUID rg
return S_OK;
}
static HRESULT WINAPI tempo_track_SetParam(IDirectMusicTrack8 *iface, REFGUID rguidType,
MUSIC_TIME mtTime, void *pParam)
static HRESULT WINAPI tempo_track_SetParam(IDirectMusicTrack8 *iface, REFGUID type, MUSIC_TIME time,
void *param)
{
IDirectMusicTempoTrack *This = impl_from_IDirectMusicTrack8(iface);
FIXME("(%p, %s, %d, %p): stub\n", This, debugstr_dmguid(rguidType), mtTime, pParam);
return S_OK;
IDirectMusicTempoTrack *This = impl_from_IDirectMusicTrack8(iface);
TRACE("(%p, %s, %d, %p)\n", This, debugstr_dmguid(type), time, param);
if (IsEqualGUID(type, &GUID_DisableTempo)) {
if (!param)
return DMUS_E_TYPE_DISABLED;
FIXME("GUID_DisableTempo not handled yet\n");
return S_OK;
}
if (IsEqualGUID(type, &GUID_EnableTempo)) {
if (!param)
return DMUS_E_TYPE_DISABLED;
FIXME("GUID_EnableTempo not handled yet\n");
return S_OK;
}
if (IsEqualGUID(type, &GUID_TempoParam)) {
if (!param)
return E_POINTER;
FIXME("GUID_TempoParam not handled yet\n");
return S_OK;
}
return DMUS_E_SET_UNSUPPORTED;
}
static HRESULT WINAPI tempo_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID rguidType)