From ea1fa38eccc18e4bc081aa6d3d8eed46c55b6f07 Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sat, 25 Jun 2022 15:56:26 -0400 Subject: [PATCH] Create get_audio_devices list from set. This eliminates duplicates without a lot of gyrations. --- tnc/audio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tnc/audio.py b/tnc/audio.py index d01a0af6..0ea36a04 100644 --- a/tnc/audio.py +++ b/tnc/audio.py @@ -34,7 +34,8 @@ def get_audio_devices(): proc.start() 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):