You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libobs: Characterize and extract obs_remove_raw_audio_callback before Rust #4715
The public obs_remove_raw_audio_callback wrapper remains inline at libobs/obs.c.h:3310-3314 on master f412956. This is the characterization and behavior-neutral extraction prerequisite required by testing-policy.md:189-235, before a separate Phase 6 Rust swap in obs-core.
Add a new C characterization calling the real exported APIs against both hybrid libobs and libobs-c-reference. Pin matching mix/callback/parameter removal, unknown and repeated removal, isolation of the other registered callbacks and mixes, full size_t invalid indices, and delegation to the initialized core's main audio output. Observe registration synchronously through audio_output_connect's duplicate rejection, without frame counts, sleeps or deferred source destruction (#4680). Include the initialized-core/no-audio case.
Run the characterization before and after moving the complete definition verbatim into libobs/obs-raw-audio-remove.c.h, with its sole core PCH include and alphabetically sorted core unity registration per BUILD.md. The only callee is the existing extern audio_output_disconnect; there is no private static helper or new seam. Do not change existing C tests, public headers, workflows, plugins/obs-websocket or test-graph.json. Keep the function's initialized-core precondition and downstream behavior unchanged.
Exact-function open PR/issue searches and merged PR search found no competing work. The neighboring obs_set_output_source extraction (#4708, branch test/4708-set-output-source-extract) is separate; this work touches a disjoint body and distinct test/source files.
The Rust swap is tracked separately in #4716, after this prerequisite lands.
Completed by #4727, merge commit 4598d179e6dd65b1fca8729ed7f027bceea02419. Verified it is an ancestor of origin/master (1273c7ea21c9c6fae1ba7bb3ba7425429dfebc56).
Verified obs_remove_raw_audio_callback was extracted verbatim into libobs/obs-raw-audio-remove.c.h with the core PCH and sorted core-unity registration. The body remains byte-identical to its pre-merge original. test_raw_audio_remove.c and its independent tests.d registration exist unchanged: they cover mix/callback/parameter identity, unknown/repeated removals, isolation, full-size invalid indices, initialized-core/no-audio and actual main-output delegation. The merged PR records before/after actual hybrid/reference replays and matching exports. This prerequisite's full scope is delivered; the separate Rust swap remains #4716. Closing as completed.
Activity
zackees commentedon Nov 11, 2026
Claiming: characterization and verbatim extraction of obs_remove_raw_audio_callback in slot obs-studio2, branch
test/4715-raw-audio-remove-extract.test: characterize raw audio callback removal (Refs #4715)
libobs: extract raw audio callback removal verbatim (Refs #4715)
zackees commentedon Nov 12, 2026
Completed by #4727, merge commit
4598d179e6dd65b1fca8729ed7f027bceea02419. Verified it is an ancestor oforigin/master(1273c7ea21c9c6fae1ba7bb3ba7425429dfebc56).Verified
obs_remove_raw_audio_callbackwas extracted verbatim intolibobs/obs-raw-audio-remove.c.hwith the core PCH and sorted core-unity registration. The body remains byte-identical to its pre-merge original.test_raw_audio_remove.cand its independent tests.d registration exist unchanged: they cover mix/callback/parameter identity, unknown/repeated removals, isolation, full-size invalid indices, initialized-core/no-audio and actual main-output delegation. The merged PR records before/after actual hybrid/reference replays and matching exports. This prerequisite's full scope is delivered; the separate Rust swap remains #4716. Closing as completed.libobs: Characterize and extract obs_remove_raw_audio_callback (Refs o…