Hello Dave, At the moment, there is no support for changing the format of QAudioBuffer. This will be a task for after 6.2. We will consider adding support for decoding into a requested format to QAudioDecoder in time for 6.2.
Best, Doris On 12.8.21, 4:32 PM, "David M. Cotter" <d...@kjams.com> wrote: more specifically, can i create an empty QAudioBuffer in the required format, and assign to it the QAudioBuffer that came from QAudioDecoder, and expect it to conform to my specified format? thanks -dave > On Aug 9, 2021, at 12:09 PM, David M. Cotter <d...@kjams.com> wrote: > >> As mentioned, in Qt6 Beta2 there's no way to set a specific format to decode in (other than that of the encoded file). > yes, i got that. > > my audio pipeline expects a very specific format, and can't handle other formats. the source mp3s come from a random assortment from the user, which i have no control over. > > what i'm asking is if there is a way, in Qt6, AFTER we have PCM data in whatever random format, to conform it to another, specific format? > > is there a QAudioFormatConverter or something? > > if not, honestly, QAudioDecoder is useless. > > -dave _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest