Fixing typo (qWarning) in voice_vatlib

This commit is contained in:
Klaus Basan
2014-02-02 19:35:09 +01:00
committed by Mathew Sutcliffe
parent 247bacb538
commit ffb09c0d4a

View File

@@ -121,7 +121,7 @@ namespace BlackCore
{ {
if (!m_voice->SetInputDevice(device.getIndex())) if (!m_voice->SetInputDevice(device.getIndex()))
{ {
qWarning() << "SetInputDevice() failed"; qWarning() << "Setting input device failed";
} }
if (!m_voice->IsInputDeviceAlive()) if (!m_voice->IsInputDeviceAlive())
{ {
@@ -149,10 +149,11 @@ namespace BlackCore
try try
{ {
// there is no return value here: https://dev.vatsim-germany.org/issues/115
m_voice->SetOutputDevice(0, device.getIndex()); m_voice->SetOutputDevice(0, device.getIndex());
if (!m_voice->IsOutputDeviceAlive(0)) if (!m_voice->IsOutputDeviceAlive(0))
{ {
qWarning() << "Input device hit a fatal error"; qWarning() << "Output device hit a fatal error";
} }
this->m_currentOutputDevice = device; this->m_currentOutputDevice = device;
} }