[PATCH 9/9] windows.media.speech: Add some comments to describe the code regions in synthesizer.c.
Bernhard Kölbl
wine at gitlab.winehq.org
Thu Jun 2 11:48:08 CDT 2022
From: Bernhard Kölbl <besentv at gmail.com>
Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
---
dlls/windows.media.speech/synthesizer.c | 48 +++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/dlls/windows.media.speech/synthesizer.c b/dlls/windows.media.speech/synthesizer.c
index 3aa04ed9fbd..e8c9f0a280d 100644
--- a/dlls/windows.media.speech/synthesizer.c
+++ b/dlls/windows.media.speech/synthesizer.c
@@ -23,6 +23,12 @@
WINE_DEFAULT_DEBUG_CHANNEL(speech);
+/*
+ *
+ * IVectorView_VoiceInformation
+ *
+ */
+
struct voice_information_vector
{
IVectorView_VoiceInformation IVectorView_VoiceInformation_iface;
@@ -140,6 +146,12 @@ static struct voice_information_vector all_voices =
0
};
+/*
+ *
+ * SpeechSynthesizer runtimeclass
+ *
+ */
+
struct synthesizer
{
ISpeechSynthesizer ISpeechSynthesizer_iface;
@@ -148,6 +160,12 @@ struct synthesizer
LONG ref;
};
+/*
+ *
+ * ISpeechSynthesizer for SpeechSynthesizer runtimeclass
+ *
+ */
+
static inline struct synthesizer *impl_from_ISpeechSynthesizer( ISpeechSynthesizer *iface )
{
return CONTAINING_RECORD(iface, struct synthesizer, ISpeechSynthesizer_iface);
@@ -266,6 +284,12 @@ static const struct ISpeechSynthesizerVtbl synthesizer_vtbl =
synthesizer_get_Voice,
};
+/*
+ *
+ * ISpeechSynthesizer2 for SpeechSynthesizer runtimeclass
+ *
+ */
+
DEFINE_IINSPECTABLE(synthesizer2, ISpeechSynthesizer2, struct synthesizer, ISpeechSynthesizer_iface)
static HRESULT WINAPI synthesizer2_get_Options( ISpeechSynthesizer2 *iface, ISpeechSynthesizerOptions **value )
@@ -288,6 +312,12 @@ static const struct ISpeechSynthesizer2Vtbl synthesizer2_vtbl =
synthesizer2_get_Options,
};
+/*
+ *
+ * IClosable for SpeechSynthesizer runtimeclass
+ *
+ */
+
DEFINE_IINSPECTABLE(closable, IClosable, struct synthesizer, ISpeechSynthesizer_iface)
static HRESULT WINAPI closable_Close( IClosable *iface )
@@ -310,6 +340,12 @@ static const struct IClosableVtbl closable_vtbl =
closable_Close,
};
+/*
+ *
+ * Static interfaces for SpeechSynthesizer runtimeclass
+ *
+ */
+
struct synthesizer_statics
{
IActivationFactory IActivationFactory_iface;
@@ -317,6 +353,12 @@ struct synthesizer_statics
LONG ref;
};
+/*
+ *
+ * IActivationFactory for SpeechSynthesizer runtimeclass
+ *
+ */
+
static inline struct synthesizer_statics *impl_from_IActivationFactory( IActivationFactory *iface )
{
return CONTAINING_RECORD(iface, struct synthesizer_statics, IActivationFactory_iface);
@@ -416,6 +458,12 @@ static const struct IActivationFactoryVtbl factory_vtbl =
factory_ActivateInstance,
};
+/*
+ *
+ * IInstalledVoicesStatic for SpeechSynthesizer runtimeclass
+ *
+ */
+
DEFINE_IINSPECTABLE(installed_voices_static, IInstalledVoicesStatic, struct synthesizer_statics, IActivationFactory_iface)
static HRESULT WINAPI installed_voices_static_get_AllVoices( IInstalledVoicesStatic *iface, IVectorView_VoiceInformation **value )
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/176
More information about the wine-devel
mailing list