dmusic: Call SetSynkSink() first to initialize the Synth.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d878158675
commit
7217973cb9
|
@ -850,15 +850,15 @@ HRESULT synth_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_param
|
|||
if (SUCCEEDED(hr))
|
||||
hr = CoCreateInstance(&CLSID_DirectMusicSynthSink, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynthSink, (void**)&obj->synth_sink);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IDirectMusicSynth_SetSynthSink(obj->synth, obj->synth_sink);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IDirectMusicSynth_SetMasterClock(obj->synth, obj->pLatencyClock);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IDirectMusicSynthSink_SetMasterClock(obj->synth_sink, obj->pLatencyClock);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IDirectMusicSynth_SetSynthSink(obj->synth, obj->synth_sink);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IDirectMusicSynth_Open(obj->synth, port_params);
|
||||
|
||||
|
|
Loading…
Reference in New Issue