Repository navigation
obs-filters: preserve unity expansion through digital silence - #86
Draft
chriscoveries wants to merge 3 commits into
Draft
chriscoveries wants to merge 3 commits into
chriscoveries wants to merge 3 commits into
Conversation
At ratio 1:1 the slope is zero. A silent envelope makes the level difference infinite, so multiplying them produced NaN and fmaxf selected the -60 dB floor. Require a nonzero slope before calculating attenuation. Retain gain-history smoothing and output gain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
One scalar calculation on
087a25c7d977ad3fbcc12a572d95ec05042824de. At a supported 1:1 Expander ratio, silence produces an infinite dB difference. Multiplying it by zero creates NaN, so fmaxf selects -60 dB and audio fades up after silence. Guard zero slope while preserving output gain and carried attack/release state. The upward compressor and non-unity expressions are unchanged.Fork-only owner review. No upstream-connected branch, public API, Rust source or workflow changes. Author: Chriscoveries [email protected].
RED / GREEN
22b975228c528280edb1e95fcb4587450d9bbd2b.fd67a46f6832d0b54ba6e26997c8dde5a28e453f.ca8dc907fec5074d7ddb61ca07979d135b9dac8a, subject starts withreview:.Observed failing assertions:
The gain-history case also tests release toward unity from existing attenuation; the non-unity/upward guard passes before and after.
Observed GREEN on Clang 17, C11, -Wall -Wextra -Werror -fno-fast-math -ffp-contract=off:
Coverage: five sample rates, 1/2/6/8 channels, RMS and peak detection, two output gains, consecutive silence-to-signal blocks and existing ballistics state. The production file was checked against its original Git blob
077451e74b0c0302ce1cf5c9c1931c3c673d7157; the fixed blob isc65ca03cd3ad2e534ead3588a02d113e2cd3aaf0.Validation boundary
Local runs compiled the complete production filter using an OBS dependency facade for allocation and unused settings/property interfaces. That facade is not included in the patch. The checked-in CTest uses real OBS headers and links libobs, but native OFF/ON linkage has not run here. The source/test arithmetic is validated; native linkage and formatting remain gates.
On the configured Mac:
Only libobs and test_expander_unity build. Absolute rpaths and ad-hoc test signing are applied before CTest. The runner creates no commits, changes no branch refs, and does no timing or network service test.
Required format-check output
Pinned formatter installation failed on package-host DNS. These checks are outstanding, not passes. Full command output and the unposted issue draft are in the final review commit. No CI was dispatched. Do not promote until the native tests and required checks pass.