Skip to content

obs-source: port obs_source_audio_render and its custom, submix and tick steps to Rust (Fixes #5923) - #5926

Merged
obs-rust-ai-rebase[bot] merged 3 commits into
masterfrom
port/5923-audio-render
Nov 29, 2026
Merged

obs-rust-ai-rebase[bot] merged 3 commits into
masterfrom
port/5923-audio-render

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #5923.

This ports obs_source_audio_render() and its three static steps, custom_audio_render(), audio_submix() and process_audio_source_tick(), to obs-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_mutex and the plugin callbacks.

What changes

  1. Extraction, no behavior change (libobs: extract ...). The four functions move verbatim into libobs/obs-source-audio-render-steps.c.h (live group libobs.core-source). obs-internal.h already declares obs_source_audio_render() without EXPORT. The volume-apply registration test now counts its two obs_source_apply_audio_volume() calls in the new file. The same commit adds the Tier 2 test test_source_audio_render_entry, so it first runs against the unchanged C.
  2. RED: the safe core's Host trait and todo!() steps, with 20 Tier 1 tests over a recording model.
  3. GREEN: the core in obs-source::audio_render_steps, the hidden export in obs-source::ffi::source_audio_render_steps (rust-hidden.d), the field adapters in obs-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() and obs_source_output_audio()), and the original moved to the reference-only group libobs.ported-source-audio-render-steps.

The behavior is kept call for call. audio_output_buf[0][0], then info.audio_render, then context.data are 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_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 (audio_ts read again only then), clears the tick's mixes the source is not on and applies the volume. The tick runs audio_submix() when info.audio_mix is set: the mix buffer cleared, audio_mix, and on success the planes as the callback left them go to obs_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 as size_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 Rust audio_callback() in obs-core (hybrid, through extern "C") both reach the symbol by name, so nothing changes for them. The only definition in the way was the do-nothing stand-in in rust/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 handled obs_source_get_ref(). No other oracle or link-support file defines these names. No intentional differences; Tier 4 does not apply.

Tiers

  • Tier 1 (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 with audio_mixers read 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, and size_t wrapping. 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.
  • Tier 2 (new test_source_audio_render_entry, Linux with OpenGL, like test_source_audio_volume_apply): three children under a composite parent on output channel 0: a custom render, an audio_mix source 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 successful audio_mix block reaching obs_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.
  • Tier 3 (audio_render_steps_parity.rs with rust/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 rewrite audio_mixers and audio_ts, each memset/memcpy rotates audio_mixers, each lock flips audio_ts and audio_mix moves 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 (one audio_mixers read, no lock, one-channel clears, audio_ts read 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):

$ soldr cargo test -p obs-data --test obs-tests-core source::audio_render_steps::
thread 'source::audio_render_steps::custom_render_failure_is_pending_with_no_timestamp' panicked at rust/obs-source/src/audio_render_steps.rs:161:5:
not yet implemented
...
test result: FAILED. 0 passed; 20 failed; 0 ignored; 0 measured; 7201 filtered out; finished in 0.02s

GREEN:

$ soldr cargo test -p obs-data --test obs-tests-core source::audio_render_steps
test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 7201 filtered out; finished in 5.70s
$ soldr cargo test -p obs-data --test obs-tests-core audio_callback
test result: ok. 43 passed; 0 failed
$ soldr cargo test -p obs-studio-rust --test obs-tests-app canonical_source_audio
test result: ok. 6 passed; 0 failed
$ ./lint
== lane lint: ok (143.0s)

ci/windows_link_check.py built and linked every Rust test binary for x86_64-pc-windows-msvc (obs-tests-core included); its cmocka half stopped on this machine at soldr 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:

  • extraction commit: 100% tests passed, 0 tests failed out of 1152 for the C reference (OFF) and hybrid (ON), and the repeat 100% tests passed, 0 tests failed out of 4 on each;
  • GREEN: the same, 1152/1152 and 4/4 on each.

Because ctest counts a cmocka skip() as Passed, I also ran the binary directly in the kept build volume under xvfb-run -a from the runtime directory. Against hybrid and against libobs-c-reference it 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 hybrid libobs.so, custom_audio_render is gone and obs_source_audio_render is 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

rdoupe and others added 3 commits November 29, 2026 01:44
…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"}}
@rdoupe
rdoupe requested a review from zackees as a code owner November 29, 2026 06:57

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM.

  • Tests: adds Tier 2 test_source_audio_render_entry.c, Tier 3 audio_render_steps_parity.rs against 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_timestamps gives the C sample_rate = usize::MAX through obs_source_apply_audio_volume. No case queues an audio action, so obs_source_audio_place_action_frame's util_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_probe on a Dell runner, not in this diff, and is rerunning.

Auto-merge on.

@zackees
zackees enabled auto-merge November 29, 2026 07:51
@zackees
zackees added this pull request to the merge queue Nov 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 29, 2026
@obs-rust-ai-rebase

Copy link
Copy Markdown

One automatic capacity retry for 838378f444a11d91ec323e9df1af3c3ba81af161 after run 46240959338 attempt 1 (RFMQE_lADOVAc9yc8AAAABjepUfc8AAAAIwTN_wA). CI Gate must pass on the new group.

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_render and its custom, submix and tick steps to obs-source

2 participants