[PATCH 7/9] dmime: Partial implementation of the Tempo track SetParam()

Michael Stefaniuc mstefani at winehq.org
Tue Dec 3 16:51:24 CST 2019


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/dmime/tempotrack.c | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/dlls/dmime/tempotrack.c b/dlls/dmime/tempotrack.c
index 6038f7ce9f..442aec37bf 100644
--- a/dlls/dmime/tempotrack.c
+++ b/dlls/dmime/tempotrack.c
@@ -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)
-- 
2.23.0




More information about the wine-devel mailing list