mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Create get_audio_devices list from set.
This eliminates duplicates without a lot of gyrations.
This commit is contained in:
parent
7704f96fc3
commit
ea1fa38ecc
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ def get_audio_devices():
|
||||||
proc.start()
|
proc.start()
|
||||||
proc.join()
|
proc.join()
|
||||||
|
|
||||||
return list(proxy_input_devices), list(proxy_output_devices)
|
# The use of set forces the list to contain only unique entries.
|
||||||
|
return list(set(proxy_input_devices)), list(set(proxy_output_devices))
|
||||||
|
|
||||||
|
|
||||||
def fetch_audio_devices(input_devices, output_devices):
|
def fetch_audio_devices(input_devices, output_devices):
|
||||||
|
|
Loading…
Reference in a new issue