From 3a279e7975d862cfb4064e6238b441869ae278c5 Mon Sep 17 00:00:00 2001 From: EtienneLescot Date: Tue, 24 Nov 2026 17:15:07 +0100 Subject: [PATCH] test(audio): accept any loudness raise in the clipped-voice fixture Homebrew moved the macOS arm64 CI job from ffmpeg 9.0.2 to 9.1, whose retuned AAC encoder leaves this fixture needing +0.95 dB instead of +1.24 dB, under the old > 1 dB precondition. The rest of the test, the crests over full scale and the export under -1 dBTP, passes on both. Refs #1677 --- crates/compositor/src/audio.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/compositor/src/audio.rs b/crates/compositor/src/audio.rs index e3f217297f..82881b82ef 100644 --- a/crates/compositor/src/audio.rs +++ b/crates/compositor/src/audio.rs @@ -3118,7 +3118,10 @@ mod tests { // crests back over full scale), raised by the loudness gain: the export read +0.5 dBTP. let mut recording = through_aac(&voice(8.0, 1.0, 2.0), "clipped-recording"); let gain = loudness_gain_for(loudness_of(&recording)); - assert!(gain > 1.0, "the fixture needs raising, like #1157's +1.6 dB: {gain}"); + // Any raise will do: how much depends on the AAC encoder's version (ffmpeg 9.0 asks + // +1.24 dB of this fixture, 9.1 +0.95, #1157 asked +1.6). The crests over full scale, + // checked just below, are what the test needs. + assert!(gain > 0.0, "the fixture needs raising, like #1157's +1.6 dB: {gain}"); apply_gain_db(&mut recording, gain); assert_lufs(loudness_of(&recording), -16.0); let hot = true_peak_dbtp(&recording);