[Interest] sound.wav -> raw (for QAudioSink buffer): QWaveDecoder?

mail at herrdiel.de mail at herrdiel.de
Tue Oct 21 10:43:59 CEST 2025


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





More information about the Interest mailing list