Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75781

QAudioDeviceInfo::availableDevices gives double entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10, 5.11, 5.12
    • Multimedia
    • None
    • WIndows 10 MSVC2017 64bit4
    • Windows, WinRT
    • 491637b716ffe8fc2115baef967a62ed174e612a (qt/qtmultimedia/dev)

      Since MultiMedia has (marginal) wasapi support (5.9/5.10?) the audio devices are listed double for both input and output devices. The difference of the double entries can only be noticed by retrieving the supportedChannelCounts() method. The 1e device entry gives a supportedChannelCounts list of 1 - 18 channel ( probably the winMM ) , the 2e entry of the same device has only 1 or 2 supportedChannel list entries ( probably the wasapi shared device ).

      Removing the "qtaudio_wasapi.dll" plugin from the deployed "audio" directory will only list the winMM ( 1-18ch devices ) so it's wasapi related

      I would suggest one of the following:

      • a filter for only getting only winMM or Wasapi devices
      • a different device name ( added wasapi to it )
      • or a QAudioDeviceInfo::isWasapi() methode

       

      Steps to produce: Compile and run Qt 5.12.3 MSCV2017 64bit4 example project "Audio Devices Example"

        For Gerrit Dashboard: QTBUG-75781
        # Subject Branch Project Status CR V

            valentyn.doroshchuk Valentyn Doroshchuk
            jeanc Jean Custers
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes