Browse Source

Add more debugging output to GAudioOutput.cc

Add debug output for when voice initialization fails on Windows
QGC4.4
Susurrus 11 years ago
parent
commit
2ce8e86f36
  1. 5
      src/GAudioOutput.cc

5
src/GAudioOutput.cc

@ -108,7 +108,7 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
if (FAILED(::CoInitialize(NULL))) if (FAILED(::CoInitialize(NULL)))
{ {
qDebug("Creating COM object for audio output failed!"); qDebug() << "ERROR: Creating COM object for audio output failed!";
} }
else else
@ -116,8 +116,9 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice); HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
if (SUCCEEDED(hr)) if (FAILED(hr))
{ {
qDebug() << "ERROR: Initializing voice for audio output failed!");
} }
} }

Loading…
Cancel
Save