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

in QAudioDecoder, provide 'setAudioFormat()' method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.2.0
    • 6.2.0 RC
    • Multimedia
    • None
    • All

    Description

      In the Qt6 documentation here, it has this line:

      decoder->setAudioFormat(desiredFormat);

      However, no such API is available in QAudioDecoder.

      According to doris:

      ...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

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

        Activity

          People

            laknoll Lars Knoll
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes