better normalization scheduling and logic

This commit is contained in:
Boof2015
2026-07-02 11:15:32 -04:00
parent cab67fbc05
commit c6c24cf1a5
12 changed files with 535 additions and 51 deletions
+3 -1
View File
@@ -56,7 +56,9 @@ export async function applyNormalizationForActiveTrack(): Promise<void> {
const resolved = resolveNormalizationGain(facts, settings);
// Register by URL (the key the native player swaps on at the media transition) and
// activate it now, since no transition fires for the already-current track.
// activate it now, since no transition fires for the already-current track. The
// track has been playing at the fallback "temp" gain (gainRegistry) meanwhile, and
// activation glides natively — no burst, no step.
setTrackGainNative(url, resolved.linearGain);
activateTrackGainNative(url);
}