Skip to content

Commit c97da3b

Browse files
committed
rec_gui example: check input instead of output
1 parent 6c9e9f2 commit c97da3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rec_gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def update_device_list(*args):
5858
device_ids = [
5959
idx
6060
for idx in hostapi['devices']
61-
if sd.query_devices(idx)['max_output_channels'] > 0]
61+
if sd.query_devices(idx)['max_input_channels'] > 0]
6262
device_list['values'] = [
6363
sd.query_devices(idx)['name'] for idx in device_ids]
64-
default = hostapi['default_output_device']
64+
default = hostapi['default_input_device']
6565
if default >= 0:
6666
device_list.current(device_ids.index(default))
6767
device_list.event_generate('<<ComboboxSelected>>')

0 commit comments

Comments
 (0)