Repository navigation
obs-source: port obs_source_audio_render and its custom, submix and tick steps to Rust (Fixes #5923) - #5926
Merged
Conversation
…5923) Move obs_source_audio_render() and its three static steps, custom_audio_render(), audio_submix() and process_audio_source_tick(), out of obs-source.c.h into obs-source-audio-render-steps.c.h (live group libobs.core-source), unchanged. obs-internal.h already declares obs_source_audio_render() without EXPORT for obs-audio.c and the Rust audio_callback(). The volume-apply registration test now counts the two obs_source_apply_audio_volume() calls in the new file. No behavior change. The new test_source_audio_render_entry characterizes them through the real libobs, one tick of the audio mix at a time: three children (a custom render, an audio_mix source that takes the tick, and a submix source) under a composite parent on output channel 0. The parent primes the case's child with a sentinel in every buffer and its mixers; in the next tick the child's callback records what it was handed and sets the fields and input, and the parent copies what libobs left. 23 cases: the clears before and after a custom render, its failed and timestamp-less results, the volume over mixer masks and mute; the tick's pending on no timestamp, short and no input, the peek, copy and clear of each mix, the main mix's clear and the volume; a submix source's mix 1 from bit 0 and no volume; and a successful audio_mix block handed to obs_source_output_audio(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#5923) The safe core's Host trait (the route's reads, the submix flag, audio_buf_mutex, audio_pending, audio_ts, audio_mixers, the input size, the callbacks' buffers, the memsets, the peek and the memcpy, the two plugin callbacks, the volume and the output) and todo!() steps, with 20 Tier 1 tests over a recording model: each route's reads behind the checks before it, the custom render's clears before and after with audio_mixers read once per mix, its failed, timestamp-less and unmixed results, the submix's clear and its output of the planes the callback left, the tick's pending checks (the input size only with a timestamp), peek, copy or clear of each mix, the main mix's clear and the volume, a submix source's mix 1 and stop, and size_t wrapping. The model fails a test on a field or buffer touched under the wrong lock state. All 20 fail on the todo!() core. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ick steps to Rust (Fixes #5923) Swap obs_source_audio_render() (with custom_audio_render(), audio_submix() and process_audio_source_tick()) in hybrid libobs for a safe Rust core over a Host trait, behind the hidden export (rust-hidden.d). The output buffer, info.audio_render and context.data are read only where the checks before reached them (432017b); a custom render points the callback's buffers, clears before per the plan with audio_mixers read once per mix, calls audio_render outside the lock, then under audio_buf_mutex sets audio_ts and audio_pending, returns when pending or unmixed, clears after and applies the volume; the tick runs the submix when info.audio_mix is set (the mix buffer cleared, audio_mix, and on success the planes as the callback left them to obs_source_output_audio()), then under the mutex the pending checks (the input size only with a timestamp), the peek, copy or clear of each mix, and the submix stop or the main mix's clear and the volume. Every decision is obs-source::audio_render_plan. The fields, the mutex, the deques, the memsets and memcpys, both callbacks, obs_source_apply_audio_volume() and obs_source_output_audio() stay C in obs-source-audio-render-steps-fields.c.h (live group, no EXPORT). The original moves to the ported group libobs.ported-source-audio-render-steps for the C reference. The test binaries' obs_source_audio_render() stand-in in oracle/audio_callback_links.c gives way to the export. Tier 3 runs the original C (with the oracle's original plan) and the Rust export on real-layout sources through shared recorders of the lock, every memset, memcpy and peek, the volume, the output and both callbacks, with clobbers that rewrite audio_mixers and audio_ts mid-call, over every route against the masks, the pending checks with sizes and channel counts, odd sample rates and a proptest; it compares the fields, every sample's bits, the event log, the deques and every other byte, and rejects six mutants. Tier 2 is test_source_audio_render_entry. No intentional differences. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Ci-Attestation: {"at":1795935077,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":77,"stamp":"1209e9d0a7f53ae53ae7f06ea7d788af","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795935077,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":77,"stamp":"45f3eb7ed68c75f903d95544d5ae2e8e","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795935077,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":77,"stamp":"2e74117dc79868b9c53c3dd951491cab","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795935077,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":77,"stamp":"f0ca0f690efa2c256e7663851308b090","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"general/all/client-lint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"5225e45f35be15fdb3ab2b5218998a5d","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795935077,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":77,"stamp":"8c8e13cc37a8b1e37045f21f67116251","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"c3b0bc580123bb36c33e7df2d4d8f307","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"31dee13f757f99e233f100c74c3be6dd","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"dcf617be1b8c9a3a7e59ed0a2c212494","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"7b4fc84905b598bed36099343ba59db4","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"163ea5516595248795872f90254a5027","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"cef6f0175203f1df3e0a3fbd35798c57","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"d28aa40c5ba03590cd2e0b2695fcf4e3","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"5eae98d72ffd7251379c230e0cc1269e","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"7b46a8b394d9c0933291ebdecfe6da49","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"12ce6fc57413d26b50227edfe7b72d7c","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"9b7507adf87c628d91e9d70de04b7720","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795934999,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"0e8e445ec1e834d8d336e042133c258e039e1dbe23f3cd7c7f0f838940eac18d","lane":"client-lint","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":150,"stamp":"3ce012c85b79b22f2ced62f37303ddf4","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Ci-Attestation: {"at":1795935444,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"0bd362aea827853382fd8985e39e24dd96362d0abbed6361211eaef8ac9fbe05","lane":"client-test-x86_64-unknown-linux-gnu","parents":["1ea4006738c725ad760199fb4df748b9ac53e8b0"],"secs":366,"stamp":"9fa2459692f6296d02fed30fc121ba22","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36","v":1,"via":"run"} Client-Checks: {"checks":{"base":"90aaafe0a82b08af7550e9523bd756a3208d89b4","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-source+.h.c","libobs/build/libobs.ported-source-audio-render-steps+.h.c","libobs/build/ported-source-sets/source-audio-render-steps.json","libobs/cmake/rust-hidden.d/obs-source-source_audio_render_steps.txt","libobs/obs-source-audio-render-steps-fields.c.h","libobs/obs-source-audio-render-steps.c.h","libobs/obs-source.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_source_audio_render_steps_swap_is_registered.rs","rust/obs-build/tests/native/registration/canonical_source_audio_volume_apply_swap_is_registered.rs","rust/obs-c-oracle/oracle.d/source-audio-render-steps.list","rust/obs-c-oracle/oracle/audio_callback_links.c","rust/obs-c-oracle/oracle/source_audio_render_steps.c","rust/obs-source/src/audio_render_steps.rs","rust/obs-source/src/ffi/mod.rs","rust/obs-source/src/ffi/source_audio_render_steps.rs","rust/obs-source/src/lib.rs","rust/obs-source/tests/source/audio_render_steps.rs","rust/obs-source/tests/source/audio_render_steps_parity.rs","rust/obs-source/tests/source/main.rs","test/cmocka/build/test-graph.json","test/cmocka/test_source_audio_render_entry.c","test/cmocka/tests.d/test_source_audio_render_entry.cmake"],"head":"1647f328b2837f979c105b0f42ec986eefa2146e","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"c902f950e25ca9f25b56db3c0881c8ec78688c62c4a581ad681963bc4967b71b","tree":"d8e36f0eda51337e83f7e7ce22915ac6e52f5c36"}}
zackees
reviewed
Nov 29, 2026
zackees
left a comment
Member
There was a problem hiding this comment.
Coordinator review: LGTM.
- Tests: adds Tier 2
test_source_audio_render_entry.c, Tier 3audio_render_steps_parity.rsagainst the oracle with mutant rejection and random cases, and a Test cost line. No existing C test or public header is edited. - Windows check after #5919:
matches_c_with_odd_sample_rates_and_timestampsgives the Csample_rate = usize::MAXthroughobs_source_apply_audio_volume. No case queues an audio action, soobs_source_audio_place_action_frame'sutil_mul_div64, which faults on MSVC x64, is never reached.conv_frames_to_time(rate, 1024)can't overflow. If a later case queues actions, reuse #5921's guard. - Fast Gate: it hit a 90 s timeout in
test_local_gate_probeon a Dell runner, not in this diff, and is rerunning.
Auto-merge on.
zackees
enabled auto-merge
November 29, 2026 07:51
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 29, 2026
|
One automatic capacity retry for |
This was referenced Nov 29, 2026
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 #5923.
This ports
obs_source_audio_render()and its three static steps,custom_audio_render(),audio_submix()andprocess_audio_source_tick(), toobs-source, in the shape of #5916. Every decision in them was already Rust (the route and per-mix plan of #2254, the volume step of #5916); what moves now is the glue on the source's fields, the input deques,audio_buf_mutexand the plugin callbacks.What changes
libobs: extract ...). The four functions move verbatim intolibobs/obs-source-audio-render-steps.c.h(live grouplibobs.core-source).obs-internal.halready declaresobs_source_audio_render()withoutEXPORT. The volume-apply registration test now counts its twoobs_source_apply_audio_volume()calls in the new file. The same commit adds the Tier 2 testtest_source_audio_render_entry, so it first runs against the unchanged C.Hosttrait andtodo!()steps, with 20 Tier 1 tests over a recording model.obs-source::audio_render_steps, the hidden export inobs-source::ffi::source_audio_render_steps(rust-hidden.d), the field adapters inobs-source-audio-render-steps-fields.c.h(the route's reads, the submix flag, the mutex,audio_pending,audio_ts,audio_mixers, the input size, the buffer pointers, the memsets, the peek, the memcpy, both callbacks,obs_source_apply_audio_volume()andobs_source_output_audio()), and the original moved to the reference-only grouplibobs.ported-source-audio-render-steps.The behavior is kept call for call.
audio_output_buf[0][0], theninfo.audio_render, thencontext.dataare read only where the checks before reached them (432017b). A custom render points the callback's buffers and clears each mix the plan says before (audio_mixersread once per mix), callsaudio_renderoutside the lock, then underaudio_buf_mutexsetsaudio_tsandaudio_pending, returns when pending or unmixed (audio_tsread again only then), clears the tick's mixes the source is not on and applies the volume. The tick runsaudio_submix()wheninfo.audio_mixis set: the mix buffer cleared,audio_mix, and on success the planes as the callback left them go toobs_source_output_audio()with the tick's rate, frames, layout and timestamp. Then under the mutex: pending without a timestamp or with short input (the input size read only with a timestamp), else the peek into mix 0, mixes 1 to 5 copied or cleared, and either the submix stop or the main mix's clear and the volume. Byte counts wrap assize_t.The callbacks get a mirrored
struct obs_source_audio_mix/struct audio_output_data(layout checked with_Static_asserts in the adapters). The slots past the tick's channels, which the C leaves uninitialized, are null here; that is a value the C never defines, not a behavior difference.I checked every caller first.
obs-audio.c(C reference) and the Rustaudio_callback()inobs-core(hybrid, throughextern "C") both reach the symbol by name, so nothing changes for them. The only definition in the way was the do-nothing stand-in inrust/obs-c-oracle/oracle/audio_callback_links.c, which obs-tests-core needed for the MSVC/MinGW/macOS link; it is gone, and the export's adapters are compiled in the new oracle file, the same way #5818 handledobs_source_get_ref(). No other oracle or link-support file defines these names. No intentional differences; Tier 4 does not apply.Tiers
rust/obs-source/tests/source/audio_render_steps.rs, 20 tests): every access in order on a recording model: each route's reads behind the checks before it, the custom render's clears before and after withaudio_mixersread once per mix (a scripted sequence of values per read), its failed, timestamp-less and unmixed results and tick mixers past six mixes, the submix's clear and output of the planes the callback left (the model's callback redirects a plane), the tick's pending checks with the input size only read with a timestamp, the peek, copy or clear of each mix, the main mix's clear and the volume, a submix source's mix 1 from bit 0 and its stop, andsize_twrapping. The model fails a test when a field is read or written, or a buffer touched, with the wrong lock state, or a callback runs under the lock.test_source_audio_render_entry, Linux with OpenGL, liketest_source_audio_volume_apply): three children under a composite parent on output channel 0: a custom render, anaudio_mixsource that takes the tick, and a submix source. The parent primes the case's child with a sentinel in every buffer and sets its mixers; in the next tick the child's callback records what it was handed and sets its fields and input, and the parent copies what libobs left. The tick's mixers are 0, 2 and 4. 23 cases: the clears before and after a custom render, failed and timestamp-less callbacks, the volume over mixer masks, mute and no mix; the tick's pending on no timestamp, short and no input, the peek (input left in place), copy and clear of each mix over four masks, the main mix's clear, the volume and mute; the submix's pending, its mix 1 from bit 0, no volume, mix 0 kept on no mix; and a successfulaudio_mixblock reachingobs_source_output_audio()(seen through an audio capture callback). The existing audio tests run unchanged. The pending route without an output buffer cannot be reached through the real mix (every source in the render order has one), so it is covered in Tier 1 and Tier 3.audio_render_steps_parity.rswithrust/obs-c-oracle/oracle/source_audio_render_steps.c): the original C (with the oracle's original plan decisions) against the Rust export on real-layout sources. Both sides go through the same recorders:audio_buf_mutex's lock and unlock, every memset and memcpy,deque_peek_front(),obs_source_apply_audio_volume(),obs_source_output_audio()(every field of the block and its planes) and both plugin callbacks (arguments, the buffers they get, and a pattern they write). With clobbers on, the callbacks rewriteaudio_mixersandaudio_ts, each memset/memcpy rotatesaudio_mixers, each lock flipsaudio_tsandaudio_mixmoves a plane, so a field read anywhere other than where the C reads it changes the outcome. Grids: every route against the masks and clobbers; the pending checks against tick sizes and channel counts; odd sample rates and timestamps; plus a proptest. It compares the fields, every sample's bits in the output and mix buffers, the event log, the deques (positions and queued bytes) and every other byte of the source. Six mutants (oneaudio_mixersread, no lock, one-channel clears,audio_tsread before the lock, no submix flag, output of the mix buffer's own planes) are rejected, and flipping the core's clear-after test by hand fails four of the five parity tests.Evidence
RED, on the RED commit 1ea4006 (Tier 1 against the
todo!()core):GREEN:
ci/windows_link_check.pybuilt and linked every Rust test binary forx86_64-pc-windows-msvc(obs-tests-core included); its cmocka half stopped on this machine atsoldr cc --target x86_64-pc-windows-msvc --print-cc, which is a local toolchain problem, not this change.Tier 2,
OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 1 --tests 'test_source_audio_render_entry|test_source_audio_volume_apply|test_source_audio_render_steps', which runs the whole suite on both libraries and then those tests:100% tests passed, 0 tests failed out of 1152for the C reference (OFF) and hybrid (ON), and the repeat100% tests passed, 0 tests failed out of 4on each;Because ctest counts a cmocka
skip()as Passed, I also ran the binary directly in the kept build volume underxvfb-run -afrom the runtime directory. Against hybrid and againstlibobs-c-referenceit reports[==========] test_source_audio_render_entry: 23 test(s) run.and[ PASSED ] 23 test(s)., on the extraction commit, on GREEN, and again on GREEN after rebasing onto 90aaafe. In the built hybridlibobs.so,custom_audio_renderis gone andobs_source_audio_renderis the Rust one; the reference still has the C.Test cost: new Rust tests run longest 0.57 s (
matches_c_over_routes_masks_and_clobbers, debug,OBS_PARITY_CASES=reduced; 5.6 s at the full level), the Tier 1 module 9 ms. Peak RSS is 23 MB over 25 runs of both modules. The tests start no threads of their own. The new cmocka test runs in about 1.3 s.🤖 Generated with Claude Code