Repository navigation
libobs: Characterize and extract obs_remove_raw_audio_callback (Refs #4715) - #4727
Merged
Merged
Conversation
zackees
enabled auto-merge
November 11, 2026 18:18
zackees
force-pushed
the
test/4715-raw-audio-remove-extract
branch
from
November 11, 2026 18:50
1c78924 to
d267011
Compare
This was referenced Nov 16, 2026
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.
The public raw-audio unsubscription wrapper is still embedded in obs.c.h, preventing an independent Rust swap. Add C characterization first, then extract its complete definition verbatim into libobs/obs-raw-audio-remove.c.h with sorted core unity registration. The function, signature, core/audio preconditions and downstream disconnect behavior stay unchanged. Refs #4715. The Rust swap is tracked separately in #4716 and waits for this prerequisite to land.
Characterization commit 745d9ab pins matching mix/callback/parameter removal, unknown and repeated removal, retention of the other callbacks and mixes, NULL parameters, invalid full-size size_t indices, initialized-core/no-audio behavior, and delegation to the actual main core audio output while an independent audio output stays registered. Registration checks use synchronous duplicate rejection, without callback counters, frame waits or deferred source destruction (#4680). Distinct stack-local markers prevent MSVC callback address folding, and no truncating constant casts are used. Extraction commit 1c78924 moves the original definition byte-for-byte. This C prerequisite has a passing characterization baseline; Rust RED/GREEN and differential Tier 3 belong to #4716, and Tier 4 does not apply.
Validation before extraction: the new suite and unchanged test_object_ref each passed ten repeats against each actual hybrid/C-reference library (40 suite executions). After extraction: both suites passed 100 repeats against each library (400 suite executions, including 1,000 new characterization cases); no skips. Actual loaded library paths were checked, and all 1,768 dynamic exports match in both phases. Build-group checks (10), soldr cargo fmt --all --check and git diff --check passed; pinned self-review found no blocker. Exactly one full SOLDR_PORCELAIN=0 ./lint ran under a 1,800-second deadline and passed (exit 0). No native Windows/macOS or sanitizer run is claimed.
No existing C test, public header, Rust source, test-graph.json, native.rs, workflow or plugins/obs-websocket changed. No user-visible behavior change or Rust test executable is introduced. The test starts no custom threads; the real core/audio outputs use their normal threads and are closed through real APIs.
🤖 Generated with Claude Code