[Interest] sound.wav -> raw (for QAudioSink buffer): QWaveDecoder?
Kai Köhne
Kai.Koehne at qt.io
Wed Oct 22 10:56:37 CEST 2025
Hi,
Augmenting what Axel said, while QWaveDecoder is not deprecated yet, it is planned to be deprecated in the upcoming Qt 6.11:
https://codereview.qt-project.org/c/qt/qtmultimedia/+/635400
But yes, the public API one should use seems QAudioDecoder.
Kai
Confidential
From: Interest <interest-bounces at qt-project.org> on behalf of Axel Spoerl via Interest <interest at qt-project.org>
Date: Tuesday, 21. October 2025 at 11:19
To: interestqt-project. org <interest at qt-project.org>
Subject: Re: [Interest] sound.wav -> raw (for QAudioSink buffer): QWaveDecoder?
Hi Sebastian,
QWaveDecoder hasn't been deprecated, but it's not documented either.
To decode a wav file in C++, just use QAudioDecoder which is documented here: https://doc.qt.io/qt-6/qaudiodecoder.html
Cheers
Axel
Confidential
________________________________
From: Interest <interest-bounces at qt-project.org> on behalf of sd via Interest <interest at qt-project.org>
Sent: Tuesday, 21 October 2025 10:43
To: interestqt-project. org <interest at qt-project.org>
Subject: [Interest] sound.wav -> raw (for QAudioSink buffer): QWaveDecoder?
Hi,
i have to read a .wav-file as RAW data to write it into a QAudioSink
buffer. Searching for best practice regarding .wav file decoding, I've
come across the "Spectrum Example", which uses the QWaveDecoder class.
For this class, I don't find documentation
(like https://doc.qt.io/qt-6/qaudiosink.html for QAudiosink), nor is
there any help for that class available with F1.
- Is there documentation to QWaveDecoder that I just haven't found yet?
- Is QWaveDecoder somewhat (future-) safe to use or is it kind of
deprecated?
- If it's the latter, how would you decode .wav-Files? Any good examples
to learn from would be highly appreciated!
BR
Sebastian
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20251022/dafad9de/attachment.htm>
More information about the Interest
mailing list