Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b9923764
Commit
b9923764
authored
Jun 02, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Remove redundant speech prefix.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
f27fbbc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
43 deletions
+43
-43
synthesizer.c
dlls/windows.media.speech/synthesizer.c
+43
-43
No files found.
dlls/windows.media.speech/synthesizer.c
View file @
b9923764
...
...
@@ -139,7 +139,7 @@ static struct voice_information_vector all_voices =
0
};
struct
s
peech_s
ynthesizer
struct
synthesizer
{
ISpeechSynthesizer
ISpeechSynthesizer_iface
;
ISpeechSynthesizer2
ISpeechSynthesizer2_iface
;
...
...
@@ -147,14 +147,14 @@ struct speech_synthesizer
LONG
ref
;
};
static
inline
struct
s
peech_s
ynthesizer
*
impl_from_ISpeechSynthesizer
(
ISpeechSynthesizer
*
iface
)
static
inline
struct
synthesizer
*
impl_from_ISpeechSynthesizer
(
ISpeechSynthesizer
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
s
peech_s
ynthesizer
,
ISpeechSynthesizer_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
synthesizer
,
ISpeechSynthesizer_iface
);
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_QueryInterface
(
ISpeechSynthesizer
*
iface
,
REFIID
iid
,
void
**
out
)
static
HRESULT
WINAPI
synthesizer_QueryInterface
(
ISpeechSynthesizer
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
s
peech_s
ynthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
struct
synthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
TRACE
(
"iface %p, iid %s, out %p stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
...
...
@@ -186,9 +186,9 @@ static HRESULT WINAPI speech_synthesizer_QueryInterface( ISpeechSynthesizer *ifa
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
s
peech_s
ynthesizer_AddRef
(
ISpeechSynthesizer
*
iface
)
static
ULONG
WINAPI
synthesizer_AddRef
(
ISpeechSynthesizer
*
iface
)
{
struct
s
peech_s
ynthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
struct
synthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
...
...
@@ -196,9 +196,9 @@ static ULONG WINAPI speech_synthesizer_AddRef( ISpeechSynthesizer *iface )
return
ref
;
}
static
ULONG
WINAPI
s
peech_s
ynthesizer_Release
(
ISpeechSynthesizer
*
iface
)
static
ULONG
WINAPI
synthesizer_Release
(
ISpeechSynthesizer
*
iface
)
{
struct
s
peech_s
ynthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
struct
synthesizer
*
impl
=
impl_from_ISpeechSynthesizer
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %lu.
\n
"
,
iface
,
ref
);
...
...
@@ -209,98 +209,98 @@ static ULONG WINAPI speech_synthesizer_Release( ISpeechSynthesizer *iface )
return
ref
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_GetIids
(
ISpeechSynthesizer
*
iface
,
ULONG
*
iid_count
,
IID
**
iids
)
static
HRESULT
WINAPI
synthesizer_GetIids
(
ISpeechSynthesizer
*
iface
,
ULONG
*
iid_count
,
IID
**
iids
)
{
FIXME
(
"iface %p, iid_count %p, iids %p stub.
\n
"
,
iface
,
iid_count
,
iids
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_GetRuntimeClassName
(
ISpeechSynthesizer
*
iface
,
HSTRING
*
class_name
)
static
HRESULT
WINAPI
synthesizer_GetRuntimeClassName
(
ISpeechSynthesizer
*
iface
,
HSTRING
*
class_name
)
{
FIXME
(
"iface %p, class_name %p stub.
\n
"
,
iface
,
class_name
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_GetTrustLevel
(
ISpeechSynthesizer
*
iface
,
TrustLevel
*
trust_level
)
static
HRESULT
WINAPI
synthesizer_GetTrustLevel
(
ISpeechSynthesizer
*
iface
,
TrustLevel
*
trust_level
)
{
FIXME
(
"iface %p, trust_level %p stub.
\n
"
,
iface
,
trust_level
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_SynthesizeTextToStreamAsync
(
ISpeechSynthesizer
*
iface
,
HSTRING
text
,
IAsyncOperation_SpeechSynthesisStream
**
operation
)
static
HRESULT
WINAPI
synthesizer_SynthesizeTextToStreamAsync
(
ISpeechSynthesizer
*
iface
,
HSTRING
text
,
IAsyncOperation_SpeechSynthesisStream
**
operation
)
{
FIXME
(
"iface %p, text %p, operation %p stub.
\n
"
,
iface
,
text
,
operation
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_SynthesizeSsmlToStreamAsync
(
ISpeechSynthesizer
*
iface
,
HSTRING
ssml
,
IAsyncOperation_SpeechSynthesisStream
**
operation
)
static
HRESULT
WINAPI
synthesizer_SynthesizeSsmlToStreamAsync
(
ISpeechSynthesizer
*
iface
,
HSTRING
ssml
,
IAsyncOperation_SpeechSynthesisStream
**
operation
)
{
FIXME
(
"iface %p, text %p, operation %p stub.
\n
"
,
iface
,
ssml
,
operation
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_put_Voice
(
ISpeechSynthesizer
*
iface
,
IVoiceInformation
*
value
)
static
HRESULT
WINAPI
synthesizer_put_Voice
(
ISpeechSynthesizer
*
iface
,
IVoiceInformation
*
value
)
{
FIXME
(
"iface %p, value %p stub.
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
s
peech_s
ynthesizer_get_Voice
(
ISpeechSynthesizer
*
iface
,
IVoiceInformation
**
value
)
static
HRESULT
WINAPI
synthesizer_get_Voice
(
ISpeechSynthesizer
*
iface
,
IVoiceInformation
**
value
)
{
FIXME
(
"iface %p, value %p stub.
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
}
static
const
struct
ISpeechSynthesizerVtbl
s
peech_s
ynthesizer_vtbl
=
static
const
struct
ISpeechSynthesizerVtbl
synthesizer_vtbl
=
{
/* IUnknown methods */
s
peech_s
ynthesizer_QueryInterface
,
s
peech_s
ynthesizer_AddRef
,
s
peech_s
ynthesizer_Release
,
synthesizer_QueryInterface
,
synthesizer_AddRef
,
synthesizer_Release
,
/* IInspectable methods */
s
peech_s
ynthesizer_GetIids
,
s
peech_s
ynthesizer_GetRuntimeClassName
,
s
peech_s
ynthesizer_GetTrustLevel
,
synthesizer_GetIids
,
synthesizer_GetRuntimeClassName
,
synthesizer_GetTrustLevel
,
/* ISpeechSynthesizer methods */
s
peech_s
ynthesizer_SynthesizeTextToStreamAsync
,
s
peech_s
ynthesizer_SynthesizeSsmlToStreamAsync
,
s
peech_s
ynthesizer_put_Voice
,
s
peech_s
ynthesizer_get_Voice
,
synthesizer_SynthesizeTextToStreamAsync
,
synthesizer_SynthesizeSsmlToStreamAsync
,
synthesizer_put_Voice
,
synthesizer_get_Voice
,
};
DEFINE_IINSPECTABLE
(
s
peech_synthesizer2
,
ISpeechSynthesizer2
,
struct
speech_
synthesizer
,
ISpeechSynthesizer_iface
)
DEFINE_IINSPECTABLE
(
s
ynthesizer2
,
ISpeechSynthesizer2
,
struct
synthesizer
,
ISpeechSynthesizer_iface
)
static
HRESULT
WINAPI
s
peech_s
ynthesizer2_get_Options
(
ISpeechSynthesizer2
*
iface
,
ISpeechSynthesizerOptions
**
value
)
static
HRESULT
WINAPI
synthesizer2_get_Options
(
ISpeechSynthesizer2
*
iface
,
ISpeechSynthesizerOptions
**
value
)
{
FIXME
(
"iface %p, value %p stub.
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
}
static
const
struct
ISpeechSynthesizer2Vtbl
s
peech_s
ynthesizer2_vtbl
=
static
const
struct
ISpeechSynthesizer2Vtbl
synthesizer2_vtbl
=
{
/* IUnknown methods */
s
peech_s
ynthesizer2_QueryInterface
,
s
peech_s
ynthesizer2_AddRef
,
s
peech_s
ynthesizer2_Release
,
synthesizer2_QueryInterface
,
synthesizer2_AddRef
,
synthesizer2_Release
,
/* IInspectable methods */
s
peech_s
ynthesizer2_GetIids
,
s
peech_s
ynthesizer2_GetRuntimeClassName
,
s
peech_s
ynthesizer2_GetTrustLevel
,
synthesizer2_GetIids
,
synthesizer2_GetRuntimeClassName
,
synthesizer2_GetTrustLevel
,
/* ISpeechSynthesizer2 methods */
s
peech_s
ynthesizer2_get_Options
,
synthesizer2_get_Options
,
};
DEFINE_IINSPECTABLE
(
closable
,
IClosable
,
struct
s
peech_s
ynthesizer
,
ISpeechSynthesizer_iface
)
DEFINE_IINSPECTABLE
(
closable
,
IClosable
,
struct
synthesizer
,
ISpeechSynthesizer_iface
)
static
HRESULT
WINAPI
closable_Close
(
IClosable
*
iface
)
{
...
...
@@ -403,7 +403,7 @@ static HRESULT WINAPI factory_GetTrustLevel( IActivationFactory *iface, TrustLev
static
HRESULT
WINAPI
factory_ActivateInstance
(
IActivationFactory
*
iface
,
IInspectable
**
instance
)
{
struct
s
peech_s
ynthesizer
*
obj
;
struct
synthesizer
*
obj
;
TRACE
(
"iface %p, instance %p.
\n
"
,
iface
,
instance
);
...
...
@@ -413,8 +413,8 @@ static HRESULT WINAPI factory_ActivateInstance( IActivationFactory *iface, IInsp
return
E_OUTOFMEMORY
;
}
obj
->
ISpeechSynthesizer_iface
.
lpVtbl
=
&
s
peech_s
ynthesizer_vtbl
;
obj
->
ISpeechSynthesizer2_iface
.
lpVtbl
=
&
s
peech_s
ynthesizer2_vtbl
;
obj
->
ISpeechSynthesizer_iface
.
lpVtbl
=
&
synthesizer_vtbl
;
obj
->
ISpeechSynthesizer2_iface
.
lpVtbl
=
&
synthesizer2_vtbl
;
obj
->
IClosable_iface
.
lpVtbl
=
&
closable_vtbl
;
obj
->
ref
=
1
;
*
instance
=
(
IInspectable
*
)
&
obj
->
ISpeechSynthesizer_iface
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment