mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-19 20:20:18 +02:00
better normalization scheduling and logic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user