We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7962d7 commit 6c9e9f2Copy full SHA for 6c9e9f2
sounddevice.py
@@ -476,6 +476,8 @@ def query_devices(device=None, kind=None):
476
477
``'name'``
478
The name of the device.
479
+ ``'index'``
480
+ The device index.
481
``'hostapi'``
482
The ID of the corresponding host API. Use
483
`query_hostapis()` to get information about a host API.
@@ -580,6 +582,7 @@ def query_devices(device=None, kind=None):
580
582
raise
581
583
device_dict = {
584
'name': name,
585
+ 'index': device,
586
'hostapi': info.hostApi,
587
'max_input_channels': info.maxInputChannels,
588
'max_output_channels': info.maxOutputChannels,
0 commit comments