Repository navigation
obs-output: Port public encoder audio getters (#3941) - #3944
Merged
Merged
Conversation
zackees
force-pushed
the
port/3941-encoder-audio-getters
branch
from
November 7, 2026 21:21
4dbc4db to
16543aa
Compare
zackees
marked this pull request as ready for review
November 7, 2026 21:21
zackees
enabled auto-merge
November 7, 2026 21:22
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 7, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 7, 2026
zackees
force-pushed
the
port/3941-encoder-audio-getters
branch
from
November 7, 2026 23:08
16543aa to
d170930
Compare
zackees
enabled auto-merge
November 7, 2026 23:08
Member
Author
|
Rebased onto master d9c613e, replacing 16543aa with d170930. Kept master’s dimension and core-global ports alongside the audio field adapter, registration and shared test modules. Characterization, extraction, RED and GREEN order is preserved, and the characterization C test is unchanged. All five focused Tier 1 and Tier 3 tests, the complete native_build module, obs-util and doctests, oracle discovery, registration, portability, graph sorting, README, Rust formatting and pinned clang-format checks passed. GCC and Clang compiled the affected native unity groups under Nix. The lease-protected push is verified and auto-merge is re-armed on this head; hosted CI remains the merge gate. |
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.
Fixes #3941. Refs #3856.
Ports obs_encoder_get_sample_rate, obs_encoder_get_frame_size and obs_encoder_get_mixer_index into obs-output. Preserves NULL defaults and debug diagnostics, wrong-type warnings with the encoder name, current rather than original encoder type, missing-media precedence over stored sample rate, lazy audio fallback and independent full-width frame size and mixer index. No intentional behavior differences.
Follows #3938 and #3927: new per-port files, a borrowed private field-pointer adapter, automatic adapter discovery without a build.rs extraction block, and a native registration entry that selects only its own target. The name is borrowed as char *const * and the oracle owns its name buffer. Sample-rate routing reuses the existing Rust helper and its original C counterpart. The oracle receives production getter and media callbacks instead of directly calling production libobs getters. Existing Core state and Application test binaries are reused.
Commit sequence after rebase: actual-library C characterization c806a2f, separate building verbatim extraction 8d62430, Tier 1 RED f7a64fd and Rust GREEN 16543aa. Both RED tests fail at deliberate stubs with exit 101. Characterization and extraction each passed three repeats against both libraries before the Rust swap. The characterization C test is unchanged after its first commit. Its first run lacked an X display; running under Xvfb resolved startup without changing the assertions.
Validation:
Test cost over 25 debug runs per new module: safe API longest 0.01 seconds and peak RSS 11,564 KiB; parity longest 0.06 seconds and peak RSS 17,480 KiB; registration longest 0.04 seconds and peak RSS 10,876 KiB. Each isolated parity child opens one existing audio-output worker and joins it on cleanup. Safe API and registration cases start no threads. No new Rust test executable.
Public headers, pre-existing C tests, WebSocket and workflows are unchanged. No behavior change or features-ledger entry. Tier 4 is inapplicable. The full cmocka suite, full workspace execution, native Windows/macOS and hosted CI were not verified locally. No native-coverage label exists in this repository. There is no local-gate attestation, so hosted validation remains enabled.