Play idents in stereo on channels 15/16 with configurable ident_channel setting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -343,6 +343,7 @@ async function loadAudioDevices() {
|
||||
const musicCh = document.getElementById('music-channel');
|
||||
const sfxCh = document.getElementById('sfx-channel');
|
||||
const adCh = document.getElementById('ad-channel');
|
||||
const identCh = document.getElementById('ident-channel');
|
||||
|
||||
if (inputCh) inputCh.value = settings.input_channel || 1;
|
||||
if (callerCh) callerCh.value = settings.caller_channel || 1;
|
||||
@@ -350,6 +351,7 @@ async function loadAudioDevices() {
|
||||
if (musicCh) musicCh.value = settings.music_channel || 2;
|
||||
if (sfxCh) sfxCh.value = settings.sfx_channel || 3;
|
||||
if (adCh) adCh.value = settings.ad_channel || 11;
|
||||
if (identCh) identCh.value = settings.ident_channel || 15;
|
||||
|
||||
// Phone filter setting
|
||||
const phoneFilterEl = document.getElementById('phone-filter');
|
||||
@@ -374,6 +376,7 @@ async function saveAudioDevices() {
|
||||
const musicChannel = document.getElementById('music-channel')?.value;
|
||||
const sfxChannel = document.getElementById('sfx-channel')?.value;
|
||||
const adChannel = document.getElementById('ad-channel')?.value;
|
||||
const identChannel = document.getElementById('ident-channel')?.value;
|
||||
const phoneFilterChecked = document.getElementById('phone-filter')?.checked ?? false;
|
||||
|
||||
await fetch('/api/audio/settings', {
|
||||
@@ -388,6 +391,7 @@ async function saveAudioDevices() {
|
||||
music_channel: musicChannel ? parseInt(musicChannel) : 2,
|
||||
sfx_channel: sfxChannel ? parseInt(sfxChannel) : 3,
|
||||
ad_channel: adChannel ? parseInt(adChannel) : 11,
|
||||
ident_channel: identChannel ? parseInt(identChannel) : 15,
|
||||
phone_filter: phoneFilterChecked
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user