Fixes around audio "on remote computer"

* Better options to debug
* Fixes as of n2, https://dev.vatsim-germany.org/boards/22/topics/1792?r=1802#message-1802
* Doxygen
This commit is contained in:
Klaus Basan
2014-06-06 22:52:44 +02:00
parent c3f7a7c179
commit 0a7be12efa
6 changed files with 58 additions and 21 deletions

View File

@@ -391,7 +391,6 @@ namespace BlackSound
}
}
return qtDevice;
}
CSoundGenerator *CSoundGenerator::playSignal(qint32 volume, const QList<CSoundGenerator::Tone> &tones, QAudioDeviceInfo device)
@@ -500,4 +499,22 @@ namespace BlackSound
// I cannot delete the file here, only after it has been played
if (removeFileAfterPlaying) BlackMisc::CFileDeleter::addFileForDeletion(file);
}
void CSoundGenerator::printAllQtSoundDevices()
{
qDebug() << "output";
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput))
{
qDebug() << qd.deviceName();
}
qDebug() << "input";
foreach(QAudioDeviceInfo qd, QAudioDeviceInfo::availableDevices(QAudio::AudioInput))
{
qDebug() << qd.deviceName();
}
}
} // namespace

View File

@@ -190,6 +190,9 @@ namespace BlackSound
*/
static void playNotificationSound(qint32 volume, CNotificationSounds::Notification notification);
//! For debugging purposes
void static printAllQtSoundDevices();
signals:
/*!
* \brief Device was closed