Add some extra diagnostic trace for available audio devices

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7667 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-05-07 15:14:33 +00:00
parent acd99f06f5
commit bd925c9228
1 changed files with 2 additions and 0 deletions

View File

@ -2433,6 +2433,8 @@ bool Configuration::impl::load_audio_devices (QAudio::Mode mode, QComboBox * com
Q_FOREACH (auto const& p, QAudioDeviceInfo::availableDevices (mode))
{
qDebug () << "Audio device: input:" << (QAudio::AudioInput == mode) << "name:" << p.deviceName () << "preferred format:" << p.preferredFormat () << "endians:" << p.supportedByteOrders () << "codecs:" << p.supportedCodecs () << "channels:" << p.supportedChannelCounts () << "rates:" << p.supportedSampleRates () << "sizes:" << p.supportedSampleSizes () << "types:" << p.supportedSampleTypes ();
// convert supported channel counts into something we can store in the item model
QList<QVariant> channel_counts;
auto scc = p.supportedChannelCounts ();