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

QAudioDeviceInfo: device names are not unique identifiers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • 4.7.0
    • Multimedia
    • None
    • OSX 10.6.6
    • macOS

      The documentation of QAudioDeviceInfo::deviceName() states:

      Device names vary depending on platform/audio plugin being used.
      They are a unique string identifiers for the audio device.

      At least on OSX this appears not to be true. I have a USB skype phone that in the OS shows up as an output and 2 inputs; OSX System Preferences->Sound reports them as:

      (Output)
      free.2
      (Input)
      free.2: Microphone
      free.2: External Line Connector
      

      QAudioDeviceInfo::availableDevices() correctly reports an output named "free.2", but only finds a single input, also called "free.2", which turns out to be the microphone. The external line connector remains inaccessible through this API.

      My interpretation of this is:
      1. The skype phone reports it's name as "free.2" on all 3 interfaces, thus making the name non-unique.
      2. OSX appears to have a mechanism for rendering interface names unique by appending additional disambiguating information ("Microphone", "External Line Connector") where necessary.
      3. QAudioDeviceInfo lacks (access to) that mechanism.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            valentyn.doroshchuk Valentyn Doroshchuk
            lino Nic Schraudolph
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes