Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QAudioDeviceInfo::availableDevices does not detect USB audio headset
QtWS25 Last Chance

QAudioDeviceInfo::availableDevices does not detect USB audio headset

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 415 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #1
    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?
      How did you install it ?
      What Linux distribution are you running ?
      What device is that ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        qt 5.5.1
        Linux desktop 4.15.0-29-generic
        16.04.1-Ubuntu
        SENNHeiser headset

        Can detect it with ALSA without any issues.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved