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
dd083a61
Commit
dd083a61
authored
Feb 16, 2024
by
Shaun Ren
Committed by
Alexandre Julliard
Feb 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Implement ISpeechVoice::GetTypeInfo.
parent
58087358
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
dispatch.c
dlls/sapi/dispatch.c
+1
-0
sapi_private.h
dlls/sapi/sapi_private.h
+1
-0
tts.c
dlls/sapi/tests/tts.c
+13
-0
tts.c
dlls/sapi/tts.c
+4
-4
No files found.
dlls/sapi/dispatch.c
View file @
dd083a61
...
...
@@ -36,6 +36,7 @@ static REFIID tid_id[] =
{
&
IID_ISpeechObjectToken
,
&
IID_ISpeechObjectTokens
,
&
IID_ISpeechVoice
,
};
HRESULT
get_typeinfo
(
enum
type_id
tid
,
ITypeInfo
**
ret
)
...
...
dlls/sapi/sapi_private.h
View file @
dd083a61
...
...
@@ -57,6 +57,7 @@ enum type_id
{
ISpeechObjectToken_tid
,
ISpeechObjectTokens_tid
,
ISpeechVoice_tid
,
last_tid
};
...
...
dlls/sapi/tests/tts.c
View file @
dd083a61
...
...
@@ -436,6 +436,8 @@ static void test_spvoice(void)
LONG
count
;
BSTR
req
=
NULL
,
opt
=
NULL
;
UINT
info_count
;
ITypeInfo
*
typeinfo
;
TYPEATTR
*
typeattr
;
HRESULT
hr
;
if
(
waveOutGetNumDevs
()
==
0
)
{
...
...
@@ -719,6 +721,17 @@ static void test_spvoice(void)
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
ok
(
info_count
==
1
,
"got %u.
\n
"
,
info_count
);
typeinfo
=
NULL
;
typeattr
=
NULL
;
hr
=
ISpeechVoice_GetTypeInfo
(
speech_voice
,
0
,
0
,
&
typeinfo
);
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
hr
=
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
typeattr
);
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
ok
(
typeattr
->
typekind
==
TKIND_DISPATCH
,
"got %u.
\n
"
,
typeattr
->
typekind
);
ok
(
IsEqualGUID
(
&
typeattr
->
guid
,
&
IID_ISpeechVoice
),
"got %s.
\n
"
,
wine_dbgstr_guid
(
&
typeattr
->
guid
));
ITypeInfo_ReleaseTypeAttr
(
typeinfo
,
typeattr
);
ITypeInfo_Release
(
typeinfo
);
ISpeechVoice_Release
(
speech_voice
);
done:
...
...
dlls/sapi/tts.c
View file @
dd083a61
...
...
@@ -186,12 +186,12 @@ static HRESULT WINAPI speech_voice_GetTypeInfoCount(ISpeechVoice *iface, UINT *c
return
S_OK
;
}
static
HRESULT
WINAPI
speech_voice_GetTypeInfo
(
ISpeechVoice
*
iface
,
UINT
in
fo
,
LCID
lcid
,
static
HRESULT
WINAPI
speech_voice_GetTypeInfo
(
ISpeechVoice
*
iface
,
UINT
in
dex
,
LCID
lcid
,
ITypeInfo
**
type_info
)
{
FIXME
(
"(%p, %u, %lu, %p): stub.
\n
"
,
iface
,
info
,
lcid
,
type_info
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %u, %#lx, %p).
\n
"
,
iface
,
index
,
lcid
,
type_info
);
if
(
index
!=
0
)
return
DISP_E_BADINDEX
;
return
get_typeinfo
(
ISpeechVoice_tid
,
type_info
)
;
}
static
HRESULT
WINAPI
speech_voice_GetIDsOfNames
(
ISpeechVoice
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
...
...
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