I am trying to record audio to wav file on Windows using QMediaRecorder in Qt6.
Printing supported formats doesn't list Wave:
QMediaFormat format;
qDebug() << format.supportedFileFormats(QMediaFormat::ConversionMode::Encode);
QList(QMediaFormat::Mpeg4Audio, QMediaFormat::FLAC, QMediaFormat::MPEG4, QMediaFormat::WMV, QMediaFormat::AAC, QMediaFormat::MP3, QMediaFormat::WMA)
Is this a known issue for Qt6, since it worked with Qt5?
Are you sure WAV codec is really installed on your system? Another Qt user has the same problem with the WAV codec on Windows 11. Mitch Curtis points to Microsoft Codecs FAQ that explains "how to find out which codecs are installed on your computer":