Update js/player.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
tryptz 2026-04-08 05:58:16 -04:00 committed by edideaur
parent 2938688308
commit 7142569741

View file

@ -1892,8 +1892,12 @@ export class Player {
const container = document.getElementById('binaural-dsp-container');
if (container) container.style.display = 'block';
}
// Notify binaural DSP of multichannel content (Atmos is typically 5.1+)
void audioContextManager.notifyBinauralChannelCount(6);
// Notify binaural DSP of the actual multichannel layout when Shaka exposes it.
const atmosChannelCount =
Number.isFinite(activeVariant.channelsCount) && activeVariant.channelsCount > 0
? activeVariant.channelsCount
: 6;
void audioContextManager.notifyBinauralChannelCount(atmosChannelCount);
const binauralActive = audioContextManager.isBinauralActive();
badgeEl.className = 'quality-badge quality-atmos shaka-quality-badge';