Skip to content

rust: Port public source audio activity query (#4018) - #4019

Merged
zackees merged 4 commits into
masterfrom
port/source-audio-active
Nov 8, 2026
Merged

zackees merged 4 commits into
masterfrom
port/source-audio-active

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Ports the public source audio activity query to Rust, preserving its sequentially consistent atomic load, NULL default, exact debug diagnostic, and lack of source mutation. Rust checks NULL before the private C field-address accessor. The adapter uses the real source layout, and independent per-port native support supplies standalone Rust-static consumers.

Fixes #4018, a Phase 6 child of #444. No intentional behavior differences. Tier 4 does not apply to this local getter. Existing C tests, public headers, and the WebSocket plugin are unchanged.

Characterization commit a365f4d passed against actual hybrid libobs and the C reference. Extraction commit 0533576 moves the C body verbatim and independently builds and passes the same tests. RED commit 4252930 fails both Tier 1 tests at the stub. GREEN commit 1ed1192 passes both Tier 1 tests and all four differential tests. Inverting the Rust atomic read made differential characterization fail; restoring it returned the suite to GREEN. Proptest persistence is disabled.

Validation passed: unchanged C characterization against both libraries, with loader proof and identical dynamic exports; the standalone Rust-static monitoring test; real-header atomic size and alignment; GCC and Clang strict format-warning checks; focused GCC ASan/UBSan on the new C test and extracted query and adapter; the entire native-build test module; all 914 utilities tests and both documentation tests; adapter discovery, registration-entry, native portability, graph sorting, build-group, port metadata and Rust ledger checks; and full serial lint. The utilities suite intentionally emits diagnostics in negative-path tests and exits successfully with no failed tests.

Rebased onto current master before the final push. Range comparison confirms all four commits retain identical patches.

Test cost: across 25 reduced-parity module runs, longest wall time 0.020 seconds and peak RSS 16.1 MiB. No own threads; the NULL-log test uses one isolated child process. No new Rust test executable.

@zackees
zackees force-pushed the port/source-audio-active branch from 5779022 to 1ed1192 Compare November 8, 2026 13:18
@zackees
zackees marked this pull request as ready for review November 8, 2026 13:19
@zackees
zackees enabled auto-merge November 8, 2026 13:19
@zackees

zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator. Verified GREEN head 1ed1192 is pushed, the final validation evidence is in the description, and head-pinned auto-merge is enabled. The pool assignment requests no waiting on hosted CI.

@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 8, 2026
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 8, 2026
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees force-pushed the port/source-audio-active branch from 1ed1192 to ffc714f Compare November 8, 2026 15:09
@zackees
zackees enabled auto-merge November 8, 2026 15:09
@zackees
zackees force-pushed the port/source-audio-active branch from ffc714f to 6db3f7f Compare November 8, 2026 15:37
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit c4bff13 Nov 8, 2026
41 checks passed
@zackees
zackees deleted the port/source-audio-active branch November 8, 2026 16:24
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 8, 2026
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.

rust: Port obs_source_audio_active in obs-source.c.h to obs-source

1 participant