From 5a3f3d304416c7bf3e60f3408863ce0a2c2fd8d4 Mon Sep 17 00:00:00 2001 From: Jage9 Date: Sat, 21 Feb 2026 01:56:42 -0500 Subject: [PATCH] Keep grid panning for mono/left/right radio modes --- client/public/version.js | 2 +- client/src/main.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/public/version.js b/client/public/version.js index 621b3f0..a6f6b21 100644 --- a/client/public/version.js +++ b/client/public/version.js @@ -1,3 +1,3 @@ // Maintainer-controlled web client version. // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) -window.CHGRID_WEB_VERSION = "2026.02.21 R79"; +window.CHGRID_WEB_VERSION = "2026.02.21 R80"; diff --git a/client/src/main.ts b/client/src/main.ts index 18d800e..bdfa773 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -685,7 +685,6 @@ function updateRadioStationSpatialAudio(): void { const normalizedVolume = Number.isFinite(volume) ? Math.max(0, Math.min(100, volume)) / 100 : 0.5; const effect = normalizeRadioEffect(item.params.effect); const effectValue = normalizeRadioEffectValue(item.params.effectValue); - const channel = normalizeRadioChannel(item.params.channel); applyRadioEffect(output, audioCtx, effect, effectValue); if (!streamUrl || !enabled) { output.gain.gain.linearRampToValueAtTime(0, audioCtx.currentTime + 0.05); @@ -704,10 +703,7 @@ function updateRadioStationSpatialAudio(): void { } output.gain.gain.linearRampToValueAtTime(gainValue * normalizedVolume, audioCtx.currentTime + 0.1); if (output.panner) { - let resolvedPan = Math.max(-1, Math.min(1, panValue)); - if (channel !== 'stereo') { - resolvedPan = 0; - } + const resolvedPan = Math.max(-1, Math.min(1, panValue)); output.panner.pan.linearRampToValueAtTime(resolvedPan, audioCtx.currentTime + 0.1); } }