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

QAudioDeviceInfo should have a displayName() or description() function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.2.1
    • Multimedia
    • None

    Description

      Hi, I am using Qt 5.2.1 on Ubuntu 13.04. If I call

      QAudioDeviceInfo::availableDevices(...)

      I get a list of devices like this:

      alsa_output.pci-0000_00_1b.0.analog-stereo
      alsa_input.pci-0000_00_1b.0.analog-stereo
      alsa_output.pci-0000_00_1b.0.analog-stereo.monitor

      Now, as far as I understand, availableDevices is the only API that can be called to retrieve the audio devices list that can be presented to the application UI. How can strings like those be of any use to the user ?

      In my previous implementation based on Qt 4.8, I was using direct calls to ALSA, getting a list like this:

      HDA Intel PCH - ALC269VB Analog
      HDA Intel PCH - HDMI 0

      So there is indeed a way to get better strings, without the need of additional parsing. Moreover, the code has to be distinguished by platform, as on Windows (for example) the names are a little bit better, but truncated to 31 characters for historical reasons (which I am surprised have never been faced in a serious way)

      Can this API be improved at least on Linux ?

      Thanks

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            mcallegari79 Massimo Callegari
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes