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

in QAudioDecoder, provide 'setAudioFormat()' method

    XMLWordPrintable

Details

    • All
    • 185ff0902181f29990c371d0b19b47915b172143 (qt/qtmultimedia/dev) 71ab74d1629aefe2a1fab1c6e8620fdd3cf0c53b (qt/qtmultimedia/6.2)
    • 6.2 Features

    Description

      In the Qt6 documentation here, it has this line:

      decoder->setAudioFormat(desiredFormat);

      However, no such API is available in QAudioDecoder.

      According to dorisverria:

      ...the decoded audio will have the same sample rate, sample format, and channel count as that of the original media.

      If you have an mp3 file of format 32k, 16bit signed int, stereo, QAudioDecoder will output PCM data of 32k, 16bit signed int, stereo from it.

      ...in Qt6 Beta2 there's no way to set a specific format to decode in

      Therefore it is currently impossible to get predictable results from the decoder, making the decoder useless, since there is also no API to conform a media buffer to the required format.

      Attachments

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

        Activity

          People

            dorisverria Doris Verria
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes