mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 13:02:43 +02:00
Fix braces
This commit is contained in:
parent
5f91f583e8
commit
07630755d4
1 changed files with 2 additions and 4 deletions
|
@ -76,12 +76,10 @@ void SpeechRecognizer::setEnabled(bool enabled) {
|
|||
if (SUCCEEDED(hr)) {
|
||||
hr = _speechRecognizer.CoCreateInstance(CLSID_SpInprocRecognizer);
|
||||
}
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
if (SUCCEEDED(hr)) {
|
||||
CComPtr<ISpObjectToken> cpAudioToken;
|
||||
hr = SpGetDefaultTokenFromCategoryId(SPCAT_AUDIOIN, &cpAudioToken);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
if (SUCCEEDED(hr)) {
|
||||
hr = _speechRecognizer->SetInput(cpAudioToken, TRUE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue