Repository navigation
obs-core: swap obs_get_audio to Rust (Refs #4808) - #4810
Merged
Merged
Conversation
zackees
force-pushed
the
test/4807-get-audio
branch
from
November 13, 2026 05:53
9d2a579 to
c9285ad
Compare
zackees
force-pushed
the
port/4808-get-audio
branch
from
November 13, 2026 06:02
5e6b4e3 to
ce0ddea
Compare
Ci-Attestation: {"at":1794863915,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":153,"stamp":"c983214a62ec2528b667bc2bd56011a1","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863915,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":153,"stamp":"ac56133434b9c12c4ef212deddba05b4","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863915,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":153,"stamp":"0fcc82de5a24ca469e45b00c30ced311","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863915,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":153,"stamp":"1d64354ad1dc16b9b653ddf2bd37be32","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863759,"gate":"general/all/client-lint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"ffb01a1296cfa62bac52ffe38df54871","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863915,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":153,"stamp":"b026da2d96e77c8d637615fa84aa4bbc","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863761,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"fa4ad4634063fa7bc7198921216dc47d","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863761,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"7eecb1ee171e8f0055008eab2fb5106e","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"83a9438436b80e3d2702bb1b8eda37ee","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"f421cfde479ed279c29c064e20d5a932","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863759,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"bb5aa197e793559f36493a766a565692","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"8abd79ccbfa830a8467ac64d8b4bb158","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"9f38921eaa2d28aa54ed715f75a04349","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863761,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"0c90a1a5e872f42bfb2e6885d1af46e4","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"2e2e515926ca8fc1b9aa5517567a572b","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863760,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"0a6c3e19f1db0b32c9100576e26054e7","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863759,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"50040255fa774bc2e7e183ac0a9ddaa3","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794863759,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"e7f575291461385e7f12f7443b0adf1e0986fe84f03262d9213fd8bbf883525e","lane":"client-lint","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":621,"stamp":"8ba8e982148e011402a3e93e0a6a77b0","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Ci-Attestation: {"at":1794866469,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"94c3f67e9cee6c613e8a2f168cf944140c1ba2dd4ee2517dd08fa95935ebbb88","lane":"client-test-x86_64-unknown-linux-gnu","parents":["ce0ddea2393c0ee30a9b1b912f9cdcbb754fef60","4de055288779f5ed17556ae45ebbefd64f7970ad"],"secs":2551,"stamp":"1e0a30294e7624b57a277c37ae6de6c0","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2","v":1,"via":"run"}
Client-Checks: {"checks":{"base":"f7da3dc172c209f7f269a3b8cf162a8ef2e53e1a","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.ported-get-audio+.h.c","libobs/build/ported-source-sets/get-audio.json","libobs/cmake/rust-exports.d/obs-core-get_audio.txt","libobs/obs-get-audio-fields.c.h","rust/README.md","rust/obs-c-oracle/oracle/get_audio.c","rust/obs-core/src/ffi/get_audio.rs","rust/obs-core/src/ffi/mod.rs","rust/obs-core/src/get_audio.rs","rust/obs-core/src/lib.rs","rust/obs-core/tests/obs_core/get_audio.rs","rust/obs-core/tests/obs_core/get_audio_parity.rs","rust/obs-core/tests/obs_core/main.rs","rust/obs-util/src/ffi/dstr.rs","rust/obs-util/tests/strings/dstr_parity.rs","test/cmocka/tests.d/get_audio_link_support.cmake"],"head":"59d50979eb555930ec0d0507e5c7655ee190bb03","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"fbdcd4b79c888cff46297f021ca1c22dc489f7c78e8bfefbf272d571c00564bc","tree":"6ae5aa5102c7945ec656c97eabb6f05ca71e8fe2"}}
zackees
marked this pull request as ready for review
November 16, 2026 22:02
zackees
enabled auto-merge
November 16, 2026 22:02
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.
obs_get_audioreturns the current core's borrowed audio output through a safe Rust core and thin ABI shim. A private C adapter preserves the field read and initialized-core precondition. Ownership, null handling, activation and synchronization remain unchanged. Refs #4808.The C-only characterization/extraction prerequisite #4809 merged as a84d43b on 2026-11-13. This branch now includes master 4de0552 through a merge that preserves the published RED/GREEN commit identities and their evidence. Conflicts retain the newer scene-enumeration and main-canvas adapters alongside the audio adapter, with sorted Rust module registrations. The diff against that master contains only this swap; existing C tests, public headers, WebSocket, workflow files and the Rust executable inventory are unchanged.
RED 2221ee8 adds three safe mirrors of the C characterization in
obs-tests-core; the implementation session observed all three failing at the intendedtodo!()stub (exit 101). GREEN ce0ddea implements exact forwarding, the FFI shim, real private-adapter layout measurements, and an oracle including the original extracted C definition and real adapter. Differential tests compare returned pointers and all core/token bytes while changing the current pointer between reads. Uninitialized/dead core and concurrent reset are excluded, matching the C precondition; tokens are never dereferenced as audio outputs.The implementation session's mutation check returned
A::default()from the safe core: both differential behavior cases failed while layout passed; restoring forwarding passed all six tests. Test cost from that session: 25 reduced-parity runs, 150 executions, longest 0.025 s, peak RSS 18,020 KiB, no own threads. This landing changes no test logic. No intentional behavior difference or user-visible change requires a features-ledger entry. Tier 4 does not apply to this non-protocol getter.Landing validation on the merged tree: all six reduced-parity
obs-tests-core get_audiosafe/layout/differential tests passed (build 480 s, execution 0.26 s). A focused Docker replay rebuilt hybrid and C-reference libobs, confirmed matching SONAMEs and 1,768 dynamic exports, checked that the original getter's object is excluded from hybrid and present in the reference, and checked the loader path for every selected executable. Unchangedtest_get_audio,test_raw_audio_removeandtest_object_refeach passed five consecutive runs per backend: 30 suite executions, zero failures. The first direct replay omitted the standard Xvfb-noresetflag and hit an XOpenDisplay setup failure in C-referencetest_raw_audio_remove; restoring the harness's flag passed the complete replay. The inherited repository-wide source audit was stopped after these focused checks; full Tier 2 and native Windows/macOS runtime remain hosted checks.The full sequential
SOLDR_PORCELAIN=0 ./lintpassed once on the final merged tree (exit 0, lint lane 502.5 s), including the required feature combinations.git diff --checkpassed. Publication and exact-head client evidence are recorded below; the merge queue remains the required hosted gate.Publication:
./pushsucceeded with complete required prooft client evidence andCi-Attestationtrailers. All six supported targets passed Clippy and Dylint (client-lint 621.4 s); all 374 CI self-test files and validators passed. Host nextest passed 8,655 workspace tests (7 slow, 46 leaky; 6 skipped), then 916 utility feature tests (1 slow); documentation tests passed and all eight GNU Windows category binaries linked (client-test 2550.7 s). Optionalclient-swiftproduced no proof becauseswift-formatis absent (exit 75); this audio-only diff selects no Swift gate. Other observed tool warnings: the shared broker was started by a different soldr image; unspecified Cargo debug profiles used soldr defaults; Linux arm64 GIO must be supplied at final link. Required evidence completed despite those warnings.Published final HEAD:
f025e7e01581b1cfbee9860dea591c51d9e6422f. GitHub reports its signature valid. Its tree and ordered parents exactly match the validated merge before stamping/signing. Publication was a plain fast-forward fromce0ddea2393c0ee30a9b1b912f9cdcbb754fef60; original RED then GREEN identities remain in ancestry. No active prerequisite hold remains. Hosted required checks and the merge queue remain mandatory.