Skip to content

Commit a6248d5

Browse files
blattmmgeier
authored andcommitted
Allow exact matches to include the hostapi's name
1 parent 471f182 commit a6248d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sounddevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ def _get_device_id(id_or_query_string, kind, raise_on_error=False):
27822782
pos += len(substring)
27832783
else:
27842784
matches.append((id, full_string))
2785-
if device_string.lower() == query_string:
2785+
if query_string in [device_string.lower(), full_string.lower()]:
27862786
exact_device_matches.append(id)
27872787

27882788
if kind is None:

0 commit comments

Comments
 (0)