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 <[email protected]> on behalf of sd via Interest <[email protected]> Sent: Tuesday, 21 October 2025 10:43 To: interestqt-project. org <[email protected]> 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 [email protected] https://lists.qt-project.org/listinfo/interest
_______________________________________________ Interest mailing list [email protected] https://lists.qt-project.org/listinfo/interest
