geesawra.industries/hydraulophone
An unofficial YouTube Music app for iPhone, iPad, and Mac.
0
0
Audio loudness metadata test brief
2026-09-24. Formal test implementation is paused at the owner's request.
When tests resume, cover:
- Parsing response-level
playerConfig.audioConfig, per-format fallback, and response-level precedence for each optional value. - Missing, malformed, boolean, and non-finite values without exposing raw player response data.
- Propagation to Standard AAC, HLS, and High Opus
ResolvedAudioStreams. - Gain policy for positive and negative
loudnessDb, perceptual measurements above and below -14 LUFS, perceptual precedence when both values exist, the 24 dB attenuation cap, absent metadata, and unity linear gain. - Decoding older progressive and HLS cache manifests with no loudness keys, plus round trips of loudness values through both cache types.
Tests must use sanitized fixtures and never require live credentials or network
access. The live canary confirmed client-specific loudnessDb baselines differ
by 7 dB while perceptualLoudnessDb agrees. Preserve this case in a sanitized
fixture: High relative 0.42, Standard relative 7.42, both perceptual -6.58,
yielding the same gain 0.425598. Include the quiet case: High relative -13.53,
Standard relative -6.53, both perceptual -20.53, yielding unity without boosting.
Native playback and settings
- Normalize Volume defaults on, persists across app launches, and disabling it applies unity gain without modifying the system volume or cached media bytes.
- AAC uses the same policy for streamed HLS and extracted local AAC.
- Opus applies gain once to each PCM buffer using that buffer's owning track. Gapless boundaries must never apply the upcoming track's gain to the previous track's tail. Compare PCM amplitude ratios, preserving codec header gain.
- Toggle normalization during play, pause, seek, and a scheduled gapless boundary. Existing seek flushing must keep pause state and rebuild successors.
- Preserve loudness through stream/cache/download copies, restarts and offline playback. Existing cache/download manifests without loudness remain playable at unity offline; online playback backfills metadata once in the background without delaying startup, deleting files, or fetching audio again.
- If the server omits loudness, preserve unity gain and normal playback.
- Guard a legacy cache metadata response by playback request identity and song identity. Stop, sign-out and Offline Only cancel it; a late response must not change a newer song's gain or recreate removed cache entries. Recover metadata while paused/seeking without changing user playback intent.