[PATCH 2/4] dmusic: Send the master clock to the synth and not a latency clock

Michael Stefaniuc mstefani at winehq.org
Fri Jan 21 11:41:08 CST 2022


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/dmusic/port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c
index a17e399ee17..fb807e7871a 100644
--- a/dlls/dmusic/port.c
+++ b/dlls/dmusic/port.c
@@ -857,7 +857,7 @@ HRESULT synth_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_param
         hr = IDirectMusicSynth_SetSynthSink(obj->synth, obj->synth_sink);
 
     if (SUCCEEDED(hr))
-        hr = IDirectMusicSynth_SetMasterClock(obj->synth, obj->pLatencyClock);
+        hr = IDirectMusicSynth_SetMasterClock(obj->synth, obj->parent->master_clock);
 
     if (SUCCEEDED(hr))
         hr = IDirectMusicSynth_Open(obj->synth, port_params);
-- 
2.31.1




More information about the wine-devel mailing list