diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-11 21:53:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-11 21:53:02 +0000 |
commit | 088403332a5a0a0312441a7938ed66f80126018f (patch) | |
tree | 97b23edd153c448f619f811bb869b5f2b964ea93 /plugins/WinterSpeak/src/SpeechApi40a.cpp | |
parent | 7eead4e8929a8cacffa457a998800f63497aca4f (diff) |
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WinterSpeak/src/SpeechApi40a.cpp')
-rw-r--r-- | plugins/WinterSpeak/src/SpeechApi40a.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/WinterSpeak/src/SpeechApi40a.cpp b/plugins/WinterSpeak/src/SpeechApi40a.cpp index 5be847dbac..7689cd39e4 100644 --- a/plugins/WinterSpeak/src/SpeechApi40a.cpp +++ b/plugins/WinterSpeak/src/SpeechApi40a.cpp @@ -218,7 +218,7 @@ std::wstring SpeechApi40a::getDescription() //------------------------------------------------------------------------------
// private:
//------------------------------------------------------------------------------
-bool SpeechApi40a::loadWithVoice(std::wstring &voice)
+bool SpeechApi40a::loadWithVoice(const std::wstring &voice)
{
CoInitialize(NULL);
@@ -228,18 +228,12 @@ bool SpeechApi40a::loadWithVoice(std::wstring &voice) // create the enumerator
if (FAILED(CoCreateInstance(CLSID_TTSEnumerator, NULL, CLSCTX_ALL, IID_ITTSEnum, (void**)&pITTSEnum)))
- {
return false;
- }
// iterate through the voices until we find the right one
while (!pITTSEnum->Next(1, &inf, NULL))
- {
if (inf.szModeName == voice)
- {
break;
- }
- }
if (FAILED(CoCreateInstance(CLSID_MMAudioDest, NULL, CLSCTX_ALL, IID_IAudioMultiMediaDevice, (void**)&pAudioDest)))
{
|