diff options
| author | blattm <manuel.blatt@web.de> | 2021-07-23 20:48:20 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2021-12-04 14:26:43 +0100 |
| commit | a6248d50f3f6e99bcc10fad73f2489f13c6a39f2 (patch) | |
| tree | 523b159f3f20c5f0cea9956dea4d3cec0d5622d3 | |
| parent | 471f1824be6c5c2144fc747245ed08eb8fe76a05 (diff) | |
Allow exact matches to include the hostapi's name
| -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: |
