From a6248d50f3f6e99bcc10fad73f2489f13c6a39f2 Mon Sep 17 00:00:00 2001 From: blattm Date: Fri, 23 Jul 2021 20:48:20 +0200 Subject: Allow exact matches to include the hostapi's name --- sounddevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3