mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user