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

in QAudioDecoder, provide 'setAudioFormat()' method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.2.0
    • 6.2.0 RC
    • Multimedia
    • None
    • All

      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.

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

            qtmultimediateam Qt Multimedia Team
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes