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
9d044669
Commit
9d044669
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::GetIDsOfNames.
parent
dd083a61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
tts.c
dlls/sapi/tests/tts.c
+7
-0
tts.c
dlls/sapi/tts.c
+10
-3
No files found.
dlls/sapi/tests/tts.c
View file @
9d044669
...
...
@@ -418,6 +418,7 @@ static void test_spvoice(void)
{
static
const
WCHAR
test_token_id
[]
=
L"HKEY_LOCAL_MACHINE
\\
Software
\\
Microsoft
\\
Speech
\\
Voices
\\
Tokens
\\
WinetestVoice"
;
static
const
WCHAR
test_text
[]
=
L"Hello! This is a test sentence."
;
static
const
WCHAR
*
get_voices
=
L"GetVoices"
;
ISpVoice
*
voice
;
IUnknown
*
dummy
;
...
...
@@ -438,6 +439,7 @@ static void test_spvoice(void)
UINT
info_count
;
ITypeInfo
*
typeinfo
;
TYPEATTR
*
typeattr
;
DISPID
dispid
;
HRESULT
hr
;
if
(
waveOutGetNumDevs
()
==
0
)
{
...
...
@@ -732,6 +734,11 @@ static void test_spvoice(void)
ITypeInfo_ReleaseTypeAttr
(
typeinfo
,
typeattr
);
ITypeInfo_Release
(
typeinfo
);
dispid
=
0xdeadbeef
;
hr
=
ISpeechVoice_GetIDsOfNames
(
speech_voice
,
&
IID_NULL
,
(
WCHAR
**
)
&
get_voices
,
1
,
0x409
,
&
dispid
);
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
ok
(
dispid
==
DISPID_SVGetVoices
,
"got %#lx.
\n
"
,
dispid
);
ISpeechVoice_Release
(
speech_voice
);
done:
...
...
dlls/sapi/tts.c
View file @
9d044669
...
...
@@ -195,11 +195,18 @@ static HRESULT WINAPI speech_voice_GetTypeInfo(ISpeechVoice *iface, UINT index,
}
static
HRESULT
WINAPI
speech_voice_GetIDsOfNames
(
ISpeechVoice
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
)
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
s
)
{
FIXME
(
"(%p, %s, %p, %u, %lu, %p): stub.
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"(%p, %s, %p, %u, %#lx, %p).
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispids
);
if
(
FAILED
(
hr
=
get_typeinfo
(
ISpeechVoice_tid
,
&
typeinfo
)))
return
hr
;
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
names
,
count
,
dispids
);
ITypeInfo_Release
(
typeinfo
);
return
hr
;
}
static
HRESULT
WINAPI
speech_voice_Invoke
(
ISpeechVoice
*
iface
,
DISPID
dispid
,
REFIID
riid
,
LCID
lcid
,
...
...
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