From bd925c9228c9a03d9702a17e74c3aaaea64595ea Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 7 May 2017 15:14:33 +0000 Subject: [PATCH] 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 --- Configuration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Configuration.cpp b/Configuration.cpp index 20c40bcb0..170473735 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -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 channel_counts; auto scc = p.supportedChannelCounts ();