Commit 2cee8153 authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

windows.media.speech: Add some comments to describe the code regions in synthesizer.c.

parent 7090d6c2
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment