Update js/player.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
2938688308
commit
7142569741
1 changed files with 6 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue