Repository navigation
test(audio): accept any loudness raise in the clipped-voice fixture - #1678
EtienneLescot wants to merge 1 commit into
Conversation
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
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
- Fix Typecheck (tests): add micGainDb/systemAudioGainDb to the cameraPrefs fixture (TS2739 blocked all three CI runs). - Drop the unrelated audio.rs threshold change; getopenscreen#1678 owns that line. - Clamp direct IPC/MCP audio gains at the helper boundary: a negative scalar flips phase on Linux/Windows. Also document systemGain in the V2 helper example.
Adds a persisted keystrokeOverlayEnabled setting (default off) shown as a Show keystrokes row in Record mode. The overlay and the low-level keyboard hook now start only when it is on: the helper takes a --keys flag and installs WH_KEYBOARD_LL only with it, so no key is observed by default. Badges move from bottom-centre (where they covered the HUD buttons) to top-centre. Updates the architecture/user docs and adds i18n strings for all locales. Also drops the unrelated audio.rs threshold change (getopenscreen#1678 owns that line).
The a_clipped_voice_exports_under_minus_one_dbtp fixture asserts gain > 1.0, a threshold measured under ffmpeg 9.0 (+1.6 dB). Through the AAC round-trip the computed gain is encoder-version dependent (getopenscreen#1678 documents 9.0 = +1.24 dB, 9.1 = +0.95 dB), so the macOS arm64 runner fails deterministically at 0.9500192 while Intel/Windows pass. Apply the exact fix from getopenscreen#1678 (gain > 0.0 plus the explanatory comment), so this becomes a no-op once getopenscreen#1678 lands and cannot conflict with it.
Fixes #1677
Cause: the macOS arm64 Rust job installs Homebrew's ffmpeg unpinned. It moved from 9.0.2 (last green run) to 9.1 (first red run), whose AAC encoder was retuned. Through 9.1's encoder this fixture needs a +0.95 dB raise, under the test's
> 1 dBprecondition. The export code is not at fault.Fix: the precondition now asks for any raise (
> 0 dB). The crests over full scale that the test actually needs are still checked right after it.Checked locally on Windows, against BtbN ffmpeg builds:
Test-only change, nothing reaches the picture or export output.
🤖 Generated with Claude Code
Summary by CodeRabbit