<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[No supported format in QAudioFormat]]></title><description><![CDATA[<p dir="auto">Just a simple example:</p>
<pre><code>#include &lt;QCoreApplication&gt;
#include &lt;QAudioSink&gt;
#include &lt;QMediaDevices&gt;
#include &lt;QDebug&gt;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QAudioFormat format = QMediaDevices::defaultAudioOutput().preferredFormat();
    if (!QMediaDevices::defaultAudioOutput().isFormatSupported(format)) {
        qWarning() &lt;&lt; "Format not supported!";
    }
    return a.exec();
}

</code></pre>
<p dir="auto">And I get the output:<br />
"<em>Format not supported!</em>"</p>
<p dir="auto">How is this possible? I'm on Windows 11, Qt 6.8.2, Qt Creator 15.0.1 (Enterprise).<br />
I checked that QMediaDevices::defaultAudioOutput() outputs my device (I listen to music from it in the browser, everything works).<br />
Maybe I somehow misunderstand how QAudioFormat works. But I tried a little bit to manually specify QAudioFormat properties, and it still showed that the format are not supported.</p>
]]></description><link>https://forum.qt.io/topic/161841/no-supported-format-in-qaudioformat</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 21:53:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/161841.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Apr 2025 21:53:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to No supported format in QAudioFormat on Fri, 18 Apr 2025 22:57:28 GMT]]></title><description><![CDATA[<p dir="auto">I updated to Qt 6.9.0 and Qt Creator 16.0.1 and problem disappeared!</p>
]]></description><link>https://forum.qt.io/post/824850</link><guid isPermaLink="true">https://forum.qt.io/post/824850</guid><dc:creator><![CDATA[Daneko]]></dc:creator><pubDate>Fri, 18 Apr 2025 22:57:28 GMT</pubDate></item></channel></rss>