summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblattm <manuel.blatt@web.de>2021-07-23 20:48:20 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2021-12-04 14:26:43 +0100
commita6248d50f3f6e99bcc10fad73f2489f13c6a39f2 (patch)
tree523b159f3f20c5f0cea9956dea4d3cec0d5622d3
parent471f1824be6c5c2144fc747245ed08eb8fe76a05 (diff)
Allow exact matches to include the hostapi's name
-rw-r--r--sounddevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 0ea75bc..810a4dc 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -2782,7 +2782,7 @@ def _get_device_id(id_or_query_string, kind, raise_on_error=False):
pos += len(substring)
else:
matches.append((id, full_string))
- if device_string.lower() == query_string:
+ if query_string in [device_string.lower(), full_string.lower()]:
exact_device_matches.append(id)
if kind is None: