Skip to content

libobs: Characterize and extract obs_remove_raw_audio_callback (Refs #4715) - #4727

Merged
zackees merged 2 commits into
masterfrom
test/4715-raw-audio-remove-extract
Nov 11, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4715-raw-audio-remove-extract

Conversation

@zackees

@zackees zackees commented Nov 11, 2026

Copy link
Copy Markdown
Member

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

@zackees
zackees enabled auto-merge November 11, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant