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
4e88f093
Commit
4e88f093
authored
May 03, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Jan 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Return IAsyncAction from session_PauseAsync.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
d21b872a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
recognizer.c
dlls/windows.media.speech/recognizer.c
+6
-1
speech.c
dlls/windows.media.speech/tests/speech.c
+10
-1
No files found.
dlls/windows.media.speech/recognizer.c
View file @
4e88f093
...
...
@@ -283,10 +283,15 @@ static HRESULT WINAPI session_CancelAsync( ISpeechContinuousRecognitionSession *
return
E_NOTIMPL
;
}
static
HRESULT
session_pause_async
(
IInspectable
*
invoker
)
{
return
S_OK
;
}
static
HRESULT
WINAPI
session_PauseAsync
(
ISpeechContinuousRecognitionSession
*
iface
,
IAsyncAction
**
action
)
{
FIXME
(
"iface %p, action %p stub!
\n
"
,
iface
,
action
);
return
E_NOTIMPL
;
return
async_action_create
(
NULL
,
session_pause_async
,
action
)
;
}
static
HRESULT
WINAPI
session_Resume
(
ISpeechContinuousRecognitionSession
*
iface
)
...
...
dlls/windows.media.speech/tests/speech.c
View file @
4e88f093
...
...
@@ -1761,6 +1761,15 @@ static void test_Recognition(void)
* TODO: Use a loopback device together with prerecorded audio files to test the recognizer's functionality.
*/
hr
=
ISpeechContinuousRecognitionSession_PauseAsync
(
session
,
&
action2
);
ok
(
hr
==
S_OK
,
"ISpeechContinuousRecognitionSession_PauseAsync failed, hr %#lx.
\n
"
,
hr
);
await_async_void
(
action2
,
&
action_handler
);
check_async_info
((
IInspectable
*
)
action2
,
3
,
Completed
,
S_OK
);
IAsyncAction_Release
(
action2
);
hr
=
ISpeechContinuousRecognitionSession_Resume
(
session
);
todo_wine
ok
(
hr
==
S_OK
,
"ISpeechContinuousRecognitionSession_Resume failed, hr %#lx.
\n
"
,
hr
);
hr
=
ISpeechContinuousRecognitionSession_StopAsync
(
session
,
&
action2
);
ok
(
hr
==
S_OK
,
"ISpeechContinuousRecognitionSession_StopAsync failed, hr %#lx.
\n
"
,
hr
);
...
...
@@ -1792,7 +1801,7 @@ static void test_Recognition(void)
hr
=
IAsyncInfo_Close
(
info
);
/* If IAsyncInfo_Close would wait for the handler to finish, the test would get stuck here. */
ok
(
hr
==
S_OK
,
"IAsyncInfo_Close failed, hr %#lx.
\n
"
,
hr
);
check_async_info
((
IInspectable
*
)
action2
,
3
,
AsyncStatus_Closed
,
S_OK
);
check_async_info
((
IInspectable
*
)
action2
,
4
,
AsyncStatus_Closed
,
S_OK
);
set
=
SetEvent
(
action_handler
.
event_block
);
ok
(
set
==
TRUE
,
"Event 'event_block' wasn't set.
\n
"
);
...
...
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