diff --git a/js/settings.js b/js/settings.js index 8384a4a..188d8fc 100644 --- a/js/settings.js +++ b/js/settings.js @@ -2914,6 +2914,7 @@ export async function initializeSettings(scrobbler, player, api, ui) { control.className = 'autoeq-band-control'; control.dataset.band = i; const currentType = band.type || 'peaking'; + const currentChannel = band.channel || 'stereo'; control.innerHTML = `
${i + 1} @@ -2922,6 +2923,11 @@ export async function initializeSettings(scrobbler, player, api, ui) { +
Freq ${formatFreq(band.freq)} Hz @@ -2990,6 +2996,16 @@ export async function initializeSettings(scrobbler, player, api, ui) { applyBandsToAudio(bands); scheduleDrawAutoEQGraph(); }); + + const channelSelect = control.querySelector('.autoeq-channel-select'); + channelSelect.addEventListener('change', () => { + const bands = getActiveBands(); + if (!bands || !bands[i]) return; + bands[i].channel = channelSelect.value; + computeCorrectedCurve(); + applyBandsToAudio(bands); + scheduleDrawAutoEQGraph(); + }); }); }; diff --git a/styles.css b/styles.css index d41c3ba..3ad777e 100644 --- a/styles.css +++ b/styles.css @@ -9085,7 +9085,8 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn { opacity: 0.6; } -.autoeq-type-select { +.autoeq-type-select, +.autoeq-channel-select { padding: 0.15rem 0.3rem; font-size: 0.7rem; font-weight: 600; @@ -9098,11 +9099,13 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn { flex-shrink: 0; } -.autoeq-type-select:hover { +.autoeq-type-select:hover, +.autoeq-channel-select:hover { border-color: var(--primary); } -.autoeq-type-select:focus { +.autoeq-type-select:focus, +.autoeq-channel-select:focus { border-color: var(--ring); }