diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2022-06-02 21:24:09 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2022-06-02 21:26:19 +0200 |
| commit | c97da3b4779fd2b3e316ac120816884fb7de9274 (patch) | |
| tree | 00bedd0fb6c40b4a2fd28461b9d8a92c495eaf47 /examples | |
| parent | 6c9e9f20217d29af45c39cf300337791e2a2fe35 (diff) | |
rec_gui example: check input instead of output
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/rec_gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rec_gui.py b/examples/rec_gui.py index d272843..5702084 100755 --- a/examples/rec_gui.py +++ b/examples/rec_gui.py @@ -58,10 +58,10 @@ class SettingsWindow(Dialog): device_ids = [ idx for idx in hostapi['devices'] - if sd.query_devices(idx)['max_output_channels'] > 0] + if sd.query_devices(idx)['max_input_channels'] > 0] device_list['values'] = [ sd.query_devices(idx)['name'] for idx in device_ids] - default = hostapi['default_output_device'] + default = hostapi['default_input_device'] if default >= 0: device_list.current(device_ids.index(default)) device_list.event_generate('<<ComboboxSelected>>') |
