[PATCH 1/4] dmsynth: Drop "synth" from the synth_sink field
Michael Stefaniuc
mstefani at winehq.org
Wed Jan 19 11:48:47 CST 2022
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
While that implements the IDirectMusicSynthSink interface the
documentation talks about the "wave sink".
dlls/dmsynth/dmsynth_private.h | 2 +-
dlls/dmsynth/synth.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/dmsynth/dmsynth_private.h b/dlls/dmsynth/dmsynth_private.h
index bcc866e879e..32a79f65dd3 100644
--- a/dlls/dmsynth/dmsynth_private.h
+++ b/dlls/dmsynth/dmsynth_private.h
@@ -65,7 +65,7 @@ struct IDirectMusicSynth8Impl {
DMUS_PORTCAPS pCaps;
BOOL fActive;
IReferenceClock* pLatencyClock;
- IDirectMusicSynthSink *synth_sink;
+ IDirectMusicSynthSink *sink;
};
/*****************************************************************************
diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c
index 19789b5a256..4d71bc738c1 100644
--- a/dlls/dmsynth/synth.c
+++ b/dlls/dmsynth/synth.c
@@ -320,7 +320,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetLatencyClock(IDirectMusicSynth8
if (!clock)
return E_POINTER;
- if (!This->synth_sink)
+ if (!This->sink)
return DMUS_E_NOSYNTHSINK;
*clock = This->pLatencyClock;
@@ -341,16 +341,16 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Activate(IDirectMusicSynth8 *iface,
}
static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *iface,
- IDirectMusicSynthSink *synth_sink)
+ IDirectMusicSynthSink *sink)
{
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)
- return IDirectMusicSynthSink_GetLatencyClock(synth_sink, &This->pLatencyClock);
+ if (sink)
+ return IDirectMusicSynthSink_GetLatencyClock(sink, &This->pLatencyClock);
return S_OK;
}
--
2.31.1
More information about the wine-devel
mailing list