mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:34:48 +00:00
sapi: Implement ISpeechVoice::Speak.
This commit is contained in:
parent
afac7d7e3f
commit
5243f2e82c
|
@ -431,6 +431,7 @@ static void test_spvoice(void)
|
||||||
ULONG stream_num;
|
ULONG stream_num;
|
||||||
DWORD regid;
|
DWORD regid;
|
||||||
DWORD start, duration;
|
DWORD start, duration;
|
||||||
|
ISpeechVoice *speech_voice;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
if (waveOutGetNumDevs() == 0) {
|
if (waveOutGetNumDevs() == 0) {
|
||||||
|
@ -681,6 +682,14 @@ static void test_spvoice(void)
|
||||||
ok(hr == S_OK, "got %#lx.\n", hr);
|
ok(hr == S_OK, "got %#lx.\n", hr);
|
||||||
ok(duration < 300, "took %lu ms.\n", duration);
|
ok(duration < 300, "took %lu ms.\n", duration);
|
||||||
|
|
||||||
|
hr = ISpVoice_QueryInterface(voice, &IID_ISpeechVoice, (void **)&speech_voice);
|
||||||
|
ok(hr == S_OK, "got %#lx.\n", hr);
|
||||||
|
|
||||||
|
hr = ISpeechVoice_Speak(speech_voice, NULL, SVSFPurgeBeforeSpeak, NULL);
|
||||||
|
ok(hr == S_OK, "got %#lx.\n", hr);
|
||||||
|
|
||||||
|
ISpeechVoice_Release(speech_voice);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
reset_engine_params(&test_engine);
|
reset_engine_params(&test_engine);
|
||||||
ISpVoice_Release(voice);
|
ISpVoice_Release(voice);
|
||||||
|
|
|
@ -357,9 +357,11 @@ static HRESULT WINAPI speech_voice_get_SynchronousSpeakTimeout(ISpeechVoice *ifa
|
||||||
|
|
||||||
static HRESULT WINAPI speech_voice_Speak(ISpeechVoice *iface, BSTR text, SpeechVoiceSpeakFlags flags, LONG *number)
|
static HRESULT WINAPI speech_voice_Speak(ISpeechVoice *iface, BSTR text, SpeechVoiceSpeakFlags flags, LONG *number)
|
||||||
{
|
{
|
||||||
FIXME("(%p, %s, %#x, %p): stub.\n", iface, debugstr_w(text), flags, number);
|
struct speech_voice *This = impl_from_ISpeechVoice(iface);
|
||||||
|
|
||||||
return E_NOTIMPL;
|
TRACE("(%p, %s, %#x, %p).\n", iface, debugstr_w(text), flags, number);
|
||||||
|
|
||||||
|
return ISpVoice_Speak(&This->ISpVoice_iface, text, flags, (ULONG *)number);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI speech_voice_SpeakStream(ISpeechVoice *iface, ISpeechBaseStream *stream,
|
static HRESULT WINAPI speech_voice_SpeakStream(ISpeechVoice *iface, ISpeechBaseStream *stream,
|
||||||
|
|
Loading…
Reference in a new issue