mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix audio input device settings
This commit is contained in:
parent
f30b5f84d0
commit
a99c6aa8e0
4 changed files with 21 additions and 4 deletions
|
|
@ -31,6 +31,14 @@ function update_checkbox_setting(id, value)
|
|||
document.input_device_select.enabled = recording_enabled
|
||||
document.input_volume_inner.enabled = recording_enabled
|
||||
document.input_volume_outer.enabled = recording_enabled
|
||||
|
||||
local selectbox = document.input_device_select
|
||||
local info = audio.input.get_input_info()
|
||||
if info then
|
||||
selectbox.value = info.device_specifier
|
||||
else
|
||||
selectbox.value = app.get_setting("audio.input-device")
|
||||
end
|
||||
end
|
||||
|
||||
function create_checkbox(id, name, tooltip)
|
||||
|
|
@ -84,6 +92,7 @@ function on_open()
|
|||
table.insert(devices, {value=name, text=name})
|
||||
end
|
||||
selectbox.options = devices
|
||||
|
||||
local info = audio.input.get_input_info()
|
||||
if info then
|
||||
selectbox.value = info.device_specifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue