<?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[Get device index from QMediaDevices]]></title><description><![CDATA[<p dir="auto">I can get a list of input audio devices with <code>QMediaDevices.audioInputs()</code> and then iterating and printing <code>description()</code> to get the name, but I can't seem to find how to get the device index. PyAudio has a method to do this, but the device name gets cut off, but this isn't the case in PySide so I'd prefer to use it. I know from several sources that my default microphone index is 1, but if I print the index of the default device using <code>enumerate()</code> and <code>isDefault()</code>, it says the device is 0. <code>QAudioDevice.id()</code> also doesn't give me anything useful.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.qt.io/topic/138121/get-device-index-from-qmediadevices</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 08:43:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138121.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Jul 2022 02:36:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get device index from QMediaDevices on Tue, 02 Aug 2022 13:12:10 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/doublefelix">@<bdi>DoubleFelix</bdi></a><br />
Which kind of index are you looking for? the identifier from <code>id()</code> looks correct to me, because it contains the information of the peripheral from my system.</p>
<p dir="auto">Maybe you can share the information you get with <code>PyAudio</code> that you are trying to find here?</p>
]]></description><link>https://forum.qt.io/post/723582</link><guid isPermaLink="true">https://forum.qt.io/post/723582</guid><dc:creator><![CDATA[CristianMaureira]]></dc:creator><pubDate>Tue, 02 Aug 2022 13:12:10 GMT</pubDate></item></channel></rss>