Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
754452dd
Commit
754452dd
authored
Jan 03, 2023
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Jan 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Do not force calling convention on internal callbacks.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
e203d3be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
private.h
dlls/windows.media.speech/private.h
+2
-2
recognizer.c
dlls/windows.media.speech/recognizer.c
+4
-4
synthesizer.c
dlls/windows.media.speech/synthesizer.c
+4
-4
No files found.
dlls/windows.media.speech/private.h
View file @
754452dd
...
...
@@ -69,8 +69,8 @@ struct vector_iids
const
GUID
*
view
;
};
typedef
HRESULT
(
WINAPI
*
async_action_callback
)(
IInspectable
*
invoker
);
typedef
HRESULT
(
WINAPI
*
async_operation_inspectable_callback
)(
IInspectable
*
invoker
,
IInspectable
**
result
);
typedef
HRESULT
(
*
async_action_callback
)(
IInspectable
*
invoker
);
typedef
HRESULT
(
*
async_operation_inspectable_callback
)(
IInspectable
*
invoker
,
IInspectable
**
result
);
HRESULT
async_action_create
(
IInspectable
*
invoker
,
async_action_callback
callback
,
IAsyncAction
**
out
);
HRESULT
async_operation_inspectable_create
(
const
GUID
*
iid
,
IInspectable
*
invoker
,
async_operation_inspectable_callback
callback
,
...
...
dlls/windows.media.speech/recognizer.c
View file @
754452dd
...
...
@@ -247,7 +247,7 @@ static HRESULT WINAPI session_set_AutoStopSilenceTimeout( ISpeechContinuousRecog
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
start_callback
(
IInspectable
*
invoker
)
static
HRESULT
session_start_async
(
IInspectable
*
invoker
)
{
return
S_OK
;
}
...
...
@@ -255,7 +255,7 @@ static HRESULT WINAPI start_callback( IInspectable *invoker )
static
HRESULT
WINAPI
session_StartAsync
(
ISpeechContinuousRecognitionSession
*
iface
,
IAsyncAction
**
action
)
{
FIXME
(
"iface %p, action %p stub!
\n
"
,
iface
,
action
);
return
async_action_create
(
NULL
,
s
tart_callback
,
action
);
return
async_action_create
(
NULL
,
s
ession_start_async
,
action
);
}
static
HRESULT
WINAPI
session_StartWithModeAsync
(
ISpeechContinuousRecognitionSession
*
iface
,
...
...
@@ -479,7 +479,7 @@ static HRESULT WINAPI recognizer_get_UIOptions( ISpeechRecognizer *iface, ISpeec
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
compile_callback
(
IInspectable
*
invoker
,
IInspectable
**
result
)
static
HRESULT
recognizer_compile_constraints_async
(
IInspectable
*
invoker
,
IInspectable
**
result
)
{
return
compilation_result_create
(
SpeechRecognitionResultStatus_Success
,
(
ISpeechRecognitionCompilationResult
**
)
result
);
}
...
...
@@ -489,7 +489,7 @@ static HRESULT WINAPI recognizer_CompileConstraintsAsync( ISpeechRecognizer *ifa
{
IAsyncOperation_IInspectable
**
value
=
(
IAsyncOperation_IInspectable
**
)
operation
;
FIXME
(
"iface %p, operation %p semi-stub!
\n
"
,
iface
,
operation
);
return
async_operation_inspectable_create
(
&
IID_IAsyncOperation_SpeechRecognitionCompilationResult
,
NULL
,
compile_callback
,
value
);
return
async_operation_inspectable_create
(
&
IID_IAsyncOperation_SpeechRecognitionCompilationResult
,
NULL
,
recognizer_compile_constraints_async
,
value
);
}
static
HRESULT
WINAPI
recognizer_RecognizeAsync
(
ISpeechRecognizer
*
iface
,
...
...
dlls/windows.media.speech/synthesizer.c
View file @
754452dd
...
...
@@ -375,7 +375,7 @@ static HRESULT WINAPI synthesizer_GetTrustLevel( ISpeechSynthesizer *iface, Trus
return
E_NOTIMPL
;
}
static
HRESULT
CALLBACK
text_to_stream_operation
(
IInspectable
*
invoker
,
IInspectable
**
result
)
static
HRESULT
synthesizer_synthesize_text_to_stream_async
(
IInspectable
*
invoker
,
IInspectable
**
result
)
{
return
synthesis_stream_create
((
ISpeechSynthesisStream
**
)
result
);
}
...
...
@@ -385,10 +385,10 @@ static HRESULT WINAPI synthesizer_SynthesizeTextToStreamAsync( ISpeechSynthesize
{
TRACE
(
"iface %p, text %p, operation %p.
\n
"
,
iface
,
text
,
operation
);
return
async_operation_inspectable_create
(
&
IID_IAsyncOperation_SpeechSynthesisStream
,
NULL
,
text_to_stream_operation
,
(
IAsyncOperation_IInspectable
**
)
operation
);
synthesizer_synthesize_text_to_stream_async
,
(
IAsyncOperation_IInspectable
**
)
operation
);
}
static
HRESULT
CALLBACK
ssml_to_stream_operation
(
IInspectable
*
invoker
,
IInspectable
**
result
)
static
HRESULT
synthesizer_synthesize_ssml_to_stream_async
(
IInspectable
*
invoker
,
IInspectable
**
result
)
{
return
synthesis_stream_create
((
ISpeechSynthesisStream
**
)
result
);
}
...
...
@@ -398,7 +398,7 @@ static HRESULT WINAPI synthesizer_SynthesizeSsmlToStreamAsync( ISpeechSynthesize
{
TRACE
(
"iface %p, ssml %p, operation %p.
\n
"
,
iface
,
ssml
,
operation
);
return
async_operation_inspectable_create
(
&
IID_IAsyncOperation_SpeechSynthesisStream
,
NULL
,
s
sml_to_stream_operation
,
(
IAsyncOperation_IInspectable
**
)
operation
);
s
ynthesizer_synthesize_ssml_to_stream_async
,
(
IAsyncOperation_IInspectable
**
)
operation
);
}
static
HRESULT
WINAPI
synthesizer_put_Voice
(
ISpeechSynthesizer
*
iface
,
IVoiceInformation
*
value
)
...
...
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