diff --git a/src/web/ui-v2-dist/index.html b/src/web/ui-v2-dist/index.html index e6486b2..3d131d0 100644 --- a/src/web/ui-v2-dist/index.html +++ b/src/web/ui-v2-dist/index.html @@ -804,8 +804,9 @@ async function setAudioParams(){ const btn=document.querySelector('.sn-btn[data-section="audio"]'); if(btn)btn.textContent='⏳ Applying...'; try{ - await API.setAudioProfile({period,rate}); + await API._fetch('/api/audio/profile',{method:'POST',body:JSON.stringify({period,rate}),timeout:15000}); toast('Audio: '+rate+'Hz / '+period+'fr'); + loadAudioParams(); }catch(e){toast('Failed: '+e.message);} if(btn)btn.textContent='🎛 Audio'; }