Unsolved QAudioDeviceInfo::availableDevices does not detect USB audio headset
-
const auto & device_info_list = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput); int size = device_info_list.size(); ===> always = 0 when USB audio headset is plugged or unplugged.
lsusb -v is used to check if it is available on Linux.
-
Hi,
What version of Qt are you using ?
How did you install it ?
What Linux distribution are you running ?
What device is that ? -
qt 5.5.1
Linux desktop 4.15.0-29-generic
16.04.1-Ubuntu
SENNHeiser headsetCan detect it with ALSA without any issues.
-
How did you install that old version of Qt ? Is it the one provided by your distribution ?
Note that Qt 5.5.1 is a bit outdated. The current version is 5.12.3 with 5.13 that is coming.