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

Documentation for QtMultimedia ALSA Output Configuration in asound

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8
    • Multimedia
    • None
    • Linux/Yocto

    Description

      I had a hard time to get the QtMultimedia ALSA backend running on two embedded devices and I think my problems should be part of the QtMultimedia documenation. However, I do not see where and thus would like to discuss an appropriate place within this issue.

      Situation: The device at question is an embedded device and this has not widespread soundcard (important point here, alsa-ucm does not know it and does not do any magic to set it up nicely). Thus, I am in a situation where I have to create an /etc/asound.conf file by myself. Creating that file and getting devices to work is kind of straight forward and it is easy to come to a point to e.g. play a sound via "aplay -D mycooldevice foo.wav".

      The missing point in the Qt documentation is the extra mile what is needed to make this device working as a QAudioOutput, which is: The device MUST provide a name hint with description and be activated for user display, such that it gets listed under the PCM devices (e.g. look into the output of "aplay -L", opposed to "aplay -l" which just reports the hardware devices). Simple step to do this, just add a section
      ```
      hint

      { show on description "anything that is not empty otherwise it will be skipped by qt multimedia" }

      ```
      Note that his also holds for the default pcm device "pcm.!default

      {...}

      " which simply is ignored when not explicitly marked visible.

      So, my main question is: where should this ALSA backend detail be added to the documentation?

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            cordlandwehr Andreas Cord-Landwehr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes