Commit 2ce8e86f authored by Susurrus's avatar Susurrus

Add more debugging output to GAudioOutput.cc

Add debug output for when voice initialization fails on Windows
parent 2c7a4309
......@@ -108,7 +108,7 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
if (FAILED(::CoInitialize(NULL)))
{
qDebug("Creating COM object for audio output failed!");
qDebug() << "ERROR: Creating COM object for audio output failed!";
}
else
......@@ -116,8 +116,9 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
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!");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment