Closed mgeier closed 2 years ago
constructing the index from the order of the devices returned by query_devices()
That's currently the way to do it.
But it would be possible to add an index
field to the dictionaries that are returned from query_devices()
. I've done this in #404, can you please try if that works for you, @vvaradarajan?
Another inconvenient issue is that the index is not returned by query_devices. I could not find a good way to get the index, other than constructing the index from the order of the devices returned by query_devices().
Originally posted by @vvaradarajan in https://github.com/spatialaudio/python-sounddevice/issues/307#issuecomment-1118113206