diff options
| -rw-r--r-- | sounddevice.py | 2 |
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: |
