sapi: Implement ISpeechVoice::GetTypeInfoCount.

This commit is contained in:
Shaun Ren 2024-02-16 20:04:07 -05:00 committed by Alexandre Julliard
parent 62aec0318b
commit 58087358d1
2 changed files with 10 additions and 4 deletions

View file

@ -435,6 +435,7 @@ static void test_spvoice(void)
ISpeechObjectTokens *speech_tokens;
LONG count;
BSTR req = NULL, opt = NULL;
UINT info_count;
HRESULT hr;
if (waveOutGetNumDevs() == 0) {
@ -713,6 +714,11 @@ static void test_spvoice(void)
hr = ISpeechVoice_Speak(speech_voice, NULL, SVSFPurgeBeforeSpeak, NULL);
ok(hr == S_OK, "got %#lx.\n", hr);
info_count = 0xdeadbeef;
hr = ISpeechVoice_GetTypeInfoCount(speech_voice, &info_count);
ok(hr == S_OK, "got %#lx.\n", hr);
ok(info_count == 1, "got %u.\n", info_count);
ISpeechVoice_Release(speech_voice);
done:

View file

@ -179,11 +179,11 @@ static ULONG WINAPI speech_voice_Release(ISpeechVoice *iface)
return ref;
}
static HRESULT WINAPI speech_voice_GetTypeInfoCount(ISpeechVoice *iface, UINT *info)
static HRESULT WINAPI speech_voice_GetTypeInfoCount(ISpeechVoice *iface, UINT *count)
{
FIXME("(%p, %p): stub.\n", iface, info);
return E_NOTIMPL;
TRACE("(%p, %p).\n", iface, count);
*count = 1;
return S_OK;
}
static HRESULT WINAPI speech_voice_GetTypeInfo(ISpeechVoice *iface, UINT info, LCID lcid,