Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0 Beta3, 6.2
-
None
-
-
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.