fix: loadAudioDevices accesses .devices from response object

API.listAudioDevices() returns {devices: [...]} not the array
directly. The response also uses card numbers hw:X,Y format.
This commit is contained in:
2026-06-16 19:14:51 -04:00
parent 93610e4d98
commit 427c77cbe7
+1 -1
View File
@@ -455,7 +455,7 @@ async function loadAudioDevices(){
const outSel=document.getElementById('audioOutputDevice');
if(!inSel||!outSel)return;
const devs=await API.listAudioDevices();
const opts=(devs||[]).map(d=>{
const opts=((devs&&devs.devices)||[]).map(d=>{
const id='hw:'+d.card+','+d.device;
return '<option value="'+id+'">'+d.name+' ('+d.desc+')</option>';
}).join('')||'<option value="">No devices</option>';