Commit 14e36e61 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dmime: SegTrigger track supports parameter GUID_IDirectMusicStyle.

parent 0914a2f2
......@@ -136,14 +136,17 @@ static HRESULT WINAPI segment_track_SetParam(IDirectMusicTrack8 *iface, REFGUID
return S_OK;
}
static HRESULT WINAPI segment_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID rguidType)
static HRESULT WINAPI segment_track_IsParamSupported(IDirectMusicTrack8 *iface, REFGUID type)
{
IDirectMusicSegTriggerTrack *This = impl_from_IDirectMusicTrack8(iface);
IDirectMusicSegTriggerTrack *This = impl_from_IDirectMusicTrack8(iface);
TRACE("(%p, %s)\n", This, debugstr_dmguid(type));
if (IsEqualGUID(type, &GUID_IDirectMusicStyle))
return S_OK;
TRACE("(%p, %s)\n", This, debugstr_dmguid(rguidType));
/* didn't find any params */
TRACE("param unsupported\n");
return DMUS_E_TYPE_UNSUPPORTED;
TRACE("param unsupported\n");
return DMUS_E_TYPE_UNSUPPORTED;
}
static HRESULT WINAPI segment_track_AddNotificationType(IDirectMusicTrack8 *iface,
......
......@@ -565,6 +565,16 @@ static void test_track(void)
ok(hr == E_NOTIMPL, "IDirectMusicTrack_SetParam failed: %08x\n", hr);
hr = IDirectMusicTrack_IsParamSupported(dmt, NULL);
ok(hr == E_NOTIMPL, "IDirectMusicTrack_IsParamSupported failed: %08x\n", hr);
hr = IDirectMusicTrack_IsParamSupported(dmt, &GUID_IDirectMusicStyle);
ok(hr == E_NOTIMPL, "got: %08x\n", hr);
}
else {
hr = IDirectMusicTrack_IsParamSupported(dmt, &GUID_IDirectMusicStyle);
if (class[i].clsid == &CLSID_DirectMusicSegmentTriggerTrack)
ok(hr == S_OK, "got: %08x\n", hr);
else
ok(hr == DMUS_E_TYPE_UNSUPPORTED, "got: %08x\n", hr);
}
if (class[i].clsid != &CLSID_DirectMusicMarkerTrack &&
class[i].clsid != &CLSID_DirectMusicTimeSigTrack) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment