Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QAudioDeviceInfo::availableDevices does not detect USB audio headset

    General and Desktop
    2
    4
    219
    Loading More Posts
    • 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.
    • JoeCFD
      JoeCFD last edited by JoeCFD

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • JoeCFD
          JoeCFD last edited by JoeCFD

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post