From 427c77cbe72ad61582b8effcbb750d9f5c9eb6c6 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 16 Jun 2026 19:14:51 -0400 Subject: [PATCH] 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. --- src/web/ui-v2-dist/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ui-v2-dist/index.html b/src/web/ui-v2-dist/index.html index a1f7f9b..8b71264 100644 --- a/src/web/ui-v2-dist/index.html +++ b/src/web/ui-v2-dist/index.html @@ -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 ''; }).join('')||'';