dmsynth: Drop "synth" from the synth_sink field.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8dae8ad8d8
commit
3292bc2965
|
@ -65,7 +65,7 @@ struct IDirectMusicSynth8Impl {
|
||||||
DMUS_PORTCAPS pCaps;
|
DMUS_PORTCAPS pCaps;
|
||||||
BOOL fActive;
|
BOOL fActive;
|
||||||
IReferenceClock* pLatencyClock;
|
IReferenceClock* pLatencyClock;
|
||||||
IDirectMusicSynthSink *synth_sink;
|
IDirectMusicSynthSink *sink;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
|
|
@ -320,7 +320,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetLatencyClock(IDirectMusicSynth8
|
||||||
if (!clock)
|
if (!clock)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
if (!This->synth_sink)
|
if (!This->sink)
|
||||||
return DMUS_E_NOSYNTHSINK;
|
return DMUS_E_NOSYNTHSINK;
|
||||||
|
|
||||||
*clock = This->pLatencyClock;
|
*clock = This->pLatencyClock;
|
||||||
|
@ -341,16 +341,16 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Activate(IDirectMusicSynth8 *iface,
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *iface,
|
static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *iface,
|
||||||
IDirectMusicSynthSink *synth_sink)
|
IDirectMusicSynthSink *sink)
|
||||||
{
|
{
|
||||||
IDirectMusicSynth8Impl *This = impl_from_IDirectMusicSynth8(iface);
|
IDirectMusicSynth8Impl *This = impl_from_IDirectMusicSynth8(iface);
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", iface, synth_sink);
|
TRACE("(%p)->(%p)\n", iface, sink);
|
||||||
|
|
||||||
This->synth_sink = synth_sink;
|
This->sink = sink;
|
||||||
|
|
||||||
if (synth_sink)
|
if (sink)
|
||||||
return IDirectMusicSynthSink_GetLatencyClock(synth_sink, &This->pLatencyClock);
|
return IDirectMusicSynthSink_GetLatencyClock(sink, &This->pLatencyClock);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue