Repository navigation
obs-source: Port the source volume snap and apply decisions - #2175
Merged
Merged
Conversation
4 of 7 tasks
rdoupe
force-pushed
the
port/source-volume
branch
from
October 24, 2026 15:38
2cce5e1 to
0127035
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 24, 2026
6 of 7 tasks
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 24, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 24, 2026
…ce-volume.c Behaviour-neutral extraction before the Rust port. The volume decisions of get_source_volume() and apply_audio_volume() move to libobs/obs-source-volume.c.h, as four functions on plain values declared in the new libobs/obs-source-volume.h without EXPORT (hidden, as -fvisibility=hidden keeps them): - obs_source_volume_snap(muted, volume): 0 when muted or close_float(volume, 0.0f, 0.0001f), 1 when close_float(volume, 1.0f, 0.0001f), else the volume, the same expressions; - obs_source_volume_action_due(action_ts, audio_ts, duration): whether the first queued action falls inside this tick, action_ts < audio_ts + duration, the sum wrapping as before; - obs_source_volume_step(vol, mixers): SKIP at vol == 1.0f, CLEAR at vol == 0.0f (so -0 too) or mixers == 0, else MULTIPLY (NaN multiplies); - obs_source_volume_mixes(audio_mixers, mixers, mix): whether the multiply touches a mix, in both masks, with the same (1 << mix). get_source_volume()'s gate (disabled, muted, push-to-mute and push-to-talk active) now goes through obs-rust#2089's helpers, obs_source_ptm_gate_held(), _mutes() and _talk_mutes(), instead of a second copy of their expressions; its stop times already went through obs_source_ptm_gate_stop_time(). obs-source.c.h keeps every read and write of the source's fields in the same order: each pressed flag is read where it was (in the stop-time test and again for its active flag), a stop time only when its key is not pressed, and enabled, muted and the gates' enabled flags only where the short-circuit reached them. source->audio_mixers is still read once per mix (another thread sets it). The one change in reads: source->volume is read once and passed to the snap, also when muted, where the C read it up to three times and not at all when muted; it is written only by apply_audio_action() on the same mix thread, so every read sees the same value. The action queue and its mutex, apply_audio_actions(), conv_frames_to_time() (the duration is passed in), the memset, the multiply loops and multiply_output_audio() stay as they were. The new file joins libobs.core-source, before obs-source.c.h, with libobs.pch.h, which includes the new header; source-sets.json lists it. docs/rust-port/naming.md already maps libobs/obs-source*.c.h to rust/obs-source. The exported symbol set is unchanged (1766); the four functions are local. Checked in a scratch harness (not committed) that compiles origin/master's get_source_volume() and apply_audio_volume() verbatim next to this branch's and the moved file, on a stand-in source, and records every call they make (the action mutex, conv_frames_to_time(), apply_audio_actions(), the memset and multiply_output_audio(), floats by bit pattern): 30,000,000 runs of each function under ASan and UBSan (20,000,000 at -O2, 10,000,000 at -O0) with every gate flag, stop times and clocks around each other and at the u64 ends, volumes from the snap edges and their float neighbours, -0, NaN payloads, +-inf, subnormals and random bit patterns, mixer masks at 0, 1, 0x3f, 0x40, 0xff, 0x80000000, UINT32_MAX and random, 0 to 2 queued actions due and not due (the sum wrapping), and durations at the u64 ends; 150,000 of the runs also clear and multiply real buffers of random bits. 220,449,492 recorded calls, the returned volumes (by bits) and the source after each call are equal, and so are the buffers. Ten deliberately broken moves (each snap edge, the muted test, the -0 result, the due compare and a modular one, the clear on <= 0 and on no mixers, either mask, the mix bit) all fail it; vol == 1.0f written as fabsf(vol - 1.0f) <= 0.0f, which is equivalent, passes. git log -L on both functions shows obs-rust#2058 (the saturated stop times) and and 1 compares and the due compare date from the 2015 audio subsystem and move as they are. Refs obs-rust#2158
test_source_volume_apply_steps compiles libobs/obs-source-volume.c.h and libobs/obs-source-ptm-gate.c.h into itself (ASan and UBSan) and calls only their hidden functions, through their headers. get_source_volume() and apply_audio_volume() are copied from obs-source.c onto a stand-in source, with apply_audio_actions(), the memset and multiply_output_audio() recorded instead of run, so the compositions are pinned too. 14 cases pin: - the snap at 0: 0, -0 (to +0), +-0.0001f and the float inside each, the smallest subnormal and FLT_MIN of either sign snap to 0; the float just past 0.0001f, 0.00011f and 0.001f are kept; - the snap at 1: the last floats that snap, 1 - 1677 * 2^-24 and 1 + 838 * 2^-23, and their outer neighbours, which do not (checked to be float neighbours); characterized, not endorsed: 0.9999f, 1.0001f, 1.0f - 0.0001f and 1.0f + 0.0001f all round to those outer floats, so none of them snaps; 0.99995f and 1.00005f do; - every other volume kept bit for bit: 0.5, 2, 20, +-FLT_MAX, -0.5, +-inf, -1 and NaNs of either sign and several payloads (a signalling NaN is still NaN); muted gives +0 for every volume, NaN and -0 included; - the gate over all 64 combinations of enabled, muted and each gate's enabled flag and pressed key, with each stored stop time before, at and after the clock and saturated (1,600 runs against the rule written out, the stored stop times included), and an open gate giving the snapped volume held, inside the delay and after it; - the action-due compare at audio_ts + duration - 1 (due), at it and + 1 (not), actions from before the tick, a duration of 0, the u64 ends, and characterized, not endorsed, the wrap: in the last tick before the clock ends audio_ts + duration wraps, so nothing at or after audio_ts is due; - the step for 15 volumes with 12 mixer masks (0, 1, 2, 0x20, 0x3f, 0x40, 0x41, 0x7f, 0x80, 0xff, 0x80000000, UINT32_MAX): exactly 1 skips whatever the mixers (characterized, not endorsed: with none too, where the callers have already cleared the buffers), exactly 0 or -0 or no mixers clears, anything else multiplies, the float next to 0 or 1 and NaN included; the enum values and size; - the mix choice over every pair of those masks and each of the six mixes; - apply_audio_volume(): a due action hands the tick to apply_audio_actions() and nothing else; one not due, or an action timestamp with an empty queue, does not; each step with every pair of masks: the clear is one memset of all six mixes and eight channels, the multiply runs over the mixes in both masks in order with the channels and the snapped volume; characterized, not endorsed: tick mixers of 0x40 and above are not 0, so nothing is cleared, and no mix is in both masks, so nothing is multiplied (the callers have cleared those mixes already). The test is in the core suite of the test graph and links libm except on MSVC. test_source_audio_ranges, test_source_volume_mix, test_audio_capture_mix_race and the scene item audio action tests cover the callers through the real libobs. Refs obs-rust#2158
Adds the volume_apply module to rust/obs-source with its API and every function as todo!(): SNAP_EPSILON (the C's 0.0001f), MAX_AUDIO_MIXES, the Step enum (SKIP, CLEAR, MULTIPLY with the C enum's values), snap(), action_due(), step() and mixes(). tests/source/volume_apply.rs ports test_source_volume_apply_steps 1:1 (steps_*: the same 14 cases, inputs and expectations, with the stand-in source and the copies of get_source_volume() and apply_audio_volume(), the gate through obs_source::ptm_gate) and adds edge cases (edge_*): - the snap against the rule computed in f64 (exact there; within [0.5, 2] the f32 difference is exact too, and outside it both distances are at least 0.5): every float within 2^14 ulps of +-0.0001, of the two last floats that snap to 1 and of +-0 (196,620 patterns, NaNs past the top included), a stride of 4,103 through all 2^32 bit patterns (1,046,788) and a proptest over any bit pattern, muted and not; the epsilon's bits (0x38d1b717); - the step against the IEEE compares written another way, over any bit pattern and mixers, -0, NaN and the floats next to 0 and 1 included; - the due compare against u128 arithmetic wrapping at 2^64, over every triple of 35 special values, full-range u64 proptests and actions within 3 ns of the tick's end; - the mix choice for every index below 32 with every pair of mask edges, and none chosen at 32 and past (an intentional difference: the C's int shift is undefined there; libobs passes mix < 6); - get_source_volume() over any flags, stop times, delays, clocks and volume bits against the gate and the snap written out. RED: soldr cargo test -p obs-data --test obs-tests-core source::volume_apply: 2 passed (the epsilon's bits and the enum values), 23 failed, each on a todo!() (obs_source_volume_snap, _action_due, _step and _mixes). Refs obs-rust#2158
Ports libobs/obs-source-volume.c.h, the volume decisions of get_source_volume() and apply_audio_volume(), to the volume_apply module of rust/obs-source. obs-source.c.h stays C around it: every read and write of the source's fields in the same order, the gate's short-circuits (through obs-rust#2089's ptm_gate shims), the action queue and its mutex, apply_audio_actions(), conv_frames_to_time(), the memset, the multiply loops and multiply_output_audio(). The hybrid libobs drops the C file and links the Rust shims in its place. Safe core (src/volume_apply.rs): - snap(): 0.0 when muted or close to 0, 1.0 when close to 1, else the volume with its bits; close() is close_float(): (f1 - f2).abs() <= SNAP_EPSILON in f32, the C's fabsf(f1 - f2) <= precision, so NaN is never close and -0.0 is close to 0 (and gives +0.0); - action_due(): action_ts < audio_ts.wrapping_add(duration), the C's uint64_t sum; - step(): Skip at vol == 1.0, Clear at vol == 0.0 (-0.0 too) or no mixers, else Multiply (NaN included), IEEE compares as the C's; - mixes(): the mix's bit in both masks; a mix of 32 or more chooses none. The module denies clippy's arithmetic, indexing, as, unwrap, expect, panic, todo, unimplemented and unreachable lints, keeps no state and takes no lock. Shims (src/ffi/source_volume.rs): the four functions keep the C signatures; the step goes back as the C enum's value (u32, 0 to 2). No pointer crosses. Intentional difference: obs_source_volume_mixes() with a mix of 31 or more, where the C's 1 << mix on an int is undefined (libobs passes mix < 6). C side: the file leaves libobs.core-source for its own group, libobs.ported-source-volume (LIBOBS_PORTED_SOURCES), whose PCH is graphics/math-defs.h (close_float) and obs-source-volume.h; libobs.pch.h keeps the header for obs-source.c. The functions are not EXPORT, so the shims are hidden: rust-hidden.txt, the local: list of rust-exports.map and rust-unexports-macos.txt. libobs-rust already links the crate's ffi. The exported symbol sets are unchanged and equal: 1766 on the C backend, the hybrid and libobs-c-reference; the four functions are local in all three, and the hybrid's come from the Rust archive (no C object of the group in the hybrid libobs). ci/test_ported_sources.py checks the group on every host. test_source_volume_apply_steps still compiles the C files into itself, unchanged, and test_source_volume_apply_steps_rust runs the same test source against libobs_rust-static alone (and libm except on MSVC): the obs-source member links on its own, as for test_source_ptm_gate_steps_rust, and holds both the volume and the ptm_gate shims the test calls. Tier 1 obs_source::volume_apply passes 25/25. Refs obs-rust#2158
Adds the oracle_* build of the unchanged libobs/obs-source-volume.c.h to obs-c-oracle (oracle/source_volume.c, its four functions renamed, plus the enum's values and size), and tests/source/volume_apply_parity.rs, which gives every input to the oracle, the shim and the core. Floats are compared by bits (NaN payloads, -0 and the infinities count), the step as the u32 the C returns, each bool as the byte the C returns (it must be 0 or 1): - the enum's values and size (4) against the C header; - the snap, muted and not, and the step with 14 mixer masks, over 115 special floats (the snap edges and the floats around them, -0, NaN payloads, +-inf, subnormals, 0.9999f and 1.0001f); - the snap over every float within 2^16 ulps of +-0.0001, of the last floats that snap to 1 and of +-0 (786,444 patterns); - the mix choice exhaustively over every pair of the low seven mask bits, with no high bits and with all of them, for every mix of 0 to 30 (1,015,808 calls; from 31 the C's int shift is undefined, the one intentional difference, checked in Tier 1); - the due compare over every triple of 35 special values (42,875); - get_source_volume() copied from obs-source.c onto a stand-in source and run once over the oracle's functions (obs-rust#2089's ptm_gate oracle for the gate) and once over the shims: the 64 flag combinations, five stored stop times per gate around the clock and saturated, three pairs of delays, three clocks and 16 volumes (230,400 runs); the result's bits and both stored stop times must match; - apply_audio_volume() copied the same way, apply_audio_actions(), the memset and multiply_output_audio() recorded: the 64 flag combinations, 16 volumes, 14 x 14 masks and four queue states (none, not due, due, the wrapped end), 802,816 runs; the recorded calls and the source must match; - proptests (20,000 cases each) over any f32 bit pattern for the snap and the step, any masks, full-range u64 times for the due compare and within 3 ns of the tick's end, and full-range sources through both callers. An ignored test runs all 2^32 bit patterns through the snap (muted and not) and the step (with and without mixers) against the oracle; in a release build it passes in 35 s. The regression files hold the seeds proptest saved while the mutation check below ran. Mutation check (not committed): 25 mutants of the core and the shims, each run against Tier 1 (25 tests) and Tier 3 (14). 23 are killed by both or by the tier that reaches them. C6, the snap's distance computed in f64, is equivalent (within [0.5, 2] the f32 difference is exact, outside it both are at least 0.5) and survives both. C19, a mix shift that wraps past 31, is killed by Tier 1 only, since Tier 3 stays where the C is defined. Tier 1 does not reach the shims; Tier 3 kills all six shim mutants. Tier 1 25/25 and Tier 3 14/14 (1 ignored) pass. Refs obs-rust#2158
rust/README.md: a row for libobs/obs-source-volume.c.h -> obs-source::volume_apply (the four functions, what stays C and in what order, what is kept and characterized, the one intentional difference, the tests that see the swap and what Tier 3 compares), the obs-source crate row lists the file, and the ptm_gate row now says get_source_volume() goes through its four functions too. The crate's description and lib.rs list the new module. docs/rust-port/naming.md already maps libobs/obs-source*.c.h to rust/obs-source. port_comparison gets source_volume.rs: apply_audio_volume() and get_source_volume() over 1024 ticks (every gate flag, volumes at and around 0 and 1, mixer masks from none to all, actions due and not due), and 1024 snaps, each side through its own functions, with checksums that must match. Measured with soldr cargo bench -p obs-c-oracle --bench port_comparison -- source_volume, every fixture built (obs-rust#2159 made the full run work again): apply_volume 6.71 us Rust, 9.84 us C per 1024 ticks; snap 1.76 us Rust, 1.70 us C per 1024. Fixes obs-rust#2158
rdoupe
force-pushed
the
port/source-volume
branch
from
October 24, 2026 18:04
0127035 to
5837736
Compare
zackees
enabled auto-merge
October 24, 2026 18:11
6 of 7 tasks
This was referenced Oct 24, 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 #2158
What and why
Ports the remaining volume decisions of
libobs/obs-source.c.htorust/obs-source, as a new modulevolume_applynext toptm_gate(#2089). These run for every audio source on every tick of the mix:get_source_volume(): the render-side gate (disabled, muted, push-to-mute and push-to-talk active) and the snap to 0 and 1 within 0.0001 (close_float);apply_audio_volume(): whether the first queued audio action is due this tick (action.timestamp < audio_ts + duration), and the volume step: skip at exactly 1.0, clear at exactly 0.0 or with no mixers, otherwise multiply the mixes in both masks.The gate reuses #2089's helpers (
obs_source_ptm_gate_held(),_mutes(),_talk_mutes()) instead of a second copy of their expressions. Its stop times already went throughobs_source_ptm_gate_stop_time().These stay in C: the action queue and its mutex,
apply_audio_actions(),conv_frames_to_time()(C passes the duration), thememset, the multiply loops andmultiply_output_audio(). Every read of the source's fields stays in C as well, in the same order:enabled,mutedand the gates' enabled flags are read only where the short-circuit reached them;audio_mixersis still read once per mix, since another thread sets it.The one change in reads:
source->volumeis now read once and passed to the snap, even when the source is muted. Before, it was read up to three times, and not at all when muted. Onlyapply_audio_action(), on the same mix thread, writes it, so every read sees the same value.Six commits:
Move (behaviour-neutral): the decisions go to
libobs/obs-source-volume.c.has four functions on plain values, declared in the newobs-source-volume.hwithoutEXPORT, so they are hidden:obs_source_volume_snap(muted, volume);obs_source_volume_action_due(action_ts, audio_ts, duration);obs_source_volume_step(vol, mixers), which returnsenum obs_source_volume_op(SKIP,CLEAR,MULTIPLY);obs_source_volume_mixes(audio_mixers, mixers, mix).The expressions move verbatim:
vol == 1.0f,vol == 0.0f(so-0clears),close_float()'sfabsf(f1 - f2) <= 0.0001f, and1 << mix.This was checked against the original code. A scratch harness (not committed) compiles origin/master's
get_source_volume()andapply_audio_volume()verbatim next to the moved ones, on a stand-in source. It records every call they make, with floats by bit pattern: the action mutex,conv_frames_to_time(),apply_audio_actions(), thememsetandmultiply_output_audio().-O2and 10,000,000 at-O0.u64ends; volumes from the snap edges and their float neighbours,-0, NaN payloads, ±inf, subnormals and random bit patterns; mixer masks at the edges and random; 0 to 2 queued actions, due and not due, with the sum wrapping; durations at theu64ends.Eleven deliberately broken moves were tried: each snap edge, the muted test, the
-0result, the due compare and a modular version of it, clearing on<= 0and on no mixers, either mask, the mix bit, andvol == 1.0fwritten asfabsf(vol - 1.0f) <= 0. The first ten fail the harness. The last is equivalent and passes.git log -Lon both functions shows libobs: Saturate push-to-talk stop times and clamp the audio balance #2058 (saturated stop times) and obs-source: Port the push-to-mute/talk gate #2089 (their helper) as the fork's changes. The 0.0001 snap, the exact compares and the due compare date from the 2015 audio subsystem and move as they are.Characterization:
test_source_volume_apply_steps, 14 cases. It compiles the moved file andobs-source-ptm-gate.c.h(ASan and UBSan) and calls only their functions.get_source_volume()andapply_audio_volume()are copied onto a stand-in source, with thememsetand the multiply recorded. It pins:1 - 1677·2⁻²⁴and1 + 838·2⁻²³), each with its float neighbours;-0gives+0; subnormals, NaN of either sign and payload, and ±inf;UINT32_MAX;u64wrap.It is in the core suite of the test graph and links libm except on MSVC.
RED: Tier 1 against
todo!(): the 14 C cases ported 1:1, plus 11 edge tests. The snap is checked against the rule computed inf64, over every float within 2¹⁴ ulps of each edge, a stride through all 2³² bit patterns and a bit-pattern proptest. The step is checked against the IEEE compares written another way, the due compare againstu128, and the mix choice for every index up to 64.get_source_volume()runs over any source.GREEN: the safe core and four
#[no_mangle]shims, in a newlibobs.ported-source-volumegroup whose PCH isgraphics/math-defs.h(forclose_float) and the new header. This commit updatessource-sets.json, the unity lists, the three export lists andci/test_ported_sources.py, each in sorted place. It also addstest_source_volume_apply_steps_rust: theobs-sourcearchive member links on its own, as it does fortest_source_ptm_gate_steps_rust, and it holds both the volume shims and theptm_gateshims the test calls.Tier 3: a C oracle of the unchanged file, parity tests, the proptest regression files and a mutation check.
Docs: the README rows (including the
ptm_gaterow, which saidget_source_volume()kept its own gate), the crate's description,lib.rs, and aport_comparisonbench file.docs/rust-port/naming.mdalready mapslibobs/obs-source*.c.htorust/obs-source, so it needs no new row.The core denies clippy's arithmetic, indexing,
as, unwrap, expect, panic, todo, unimplemented and unreachable lints. It keeps no state, takes no lock, and cannot panic on any input.The C's compares are kept, bit for bit.
close()is(f1 - f2).abs() <= 0.0001inf32, so NaN is never close and-0.0is close to 0. The step uses IEEE==.action_due()isaction_ts < audio_ts.wrapping_add(duration).Kept, characterized, not endorsed:
0.9999f,1.0001fand1.0f ∓ 0.0001fall round to the floats just outside the snap, so none of them snaps to 1;MAX_AUDIO_MIXES(0x40 and up) neither clear nor multiply; the callers have already cleared those mixes;u64clock ends,audio_ts + durationwraps, so nothing at or afteraudio_tsis due.Intentional difference:
obs_source_volume_mixes()with a mix of 31 or more, where the C's1 << mixon anintis undefined. The port answers for bit 31, then for no mix. libobs only passes a mix below 6. Tier 1 tests this; Tier 3 stays where the C is defined. It is listed in the parity test header, the shim docs andrust/README.md.Tier 3 compares the oracle, the shim and the core on every input. Floats are compared by bits, the step as the
u32the C returns, and eachboolas the byte the C returns.get_source_volume()andapply_audio_volume()are copied onto a stand-in and run over each side's functions, the ptm_gate oracle included. Every flag runs with stop times, delays, clocks and 16 volumes (230,400 runs), and with masks and queue states (802,816 runs). The result's bits, the stored stop times and the recorded clear and multiply calls must match.f32bit pattern, any masks and full-rangeu64times.Mutation check (not committed): 25 mutants, each run against Tier 1 (25 tests) and Tier 3 (14).
<, muted ignored,-0kept, snap to 1 only from below, NaN close)f64f32difference is exact, and outside it both distances are at least 0.5<=, saturating sum, modular distance)>= 1,-0not cleared, no mixers not cleared, NaN skips, skip near 1)Exported symbols: 1766 on the C backend, the hybrid and
libobs-c-reference, with identical sets, unchanged from master. This was checked on the move, on GREEN and on the head. The four functions are local (t) in all three. In the hybrid they come from the Rust archive: no C object of the group is in the hybrid libobs, and itsobs_source_volume_snapis Rust code.Performance (
port_comparison, x86_64 Linux, GCC, release, not pinned to a core; median per 1024 calls):apply_volume, through both callers: Rust 6.71 µs, C 9.84 µs;snap: Rust 1.76 µs, C 1.70 µs.That is under 10 ns per source per 21.3 ms tick, either way. The run used
-- source_volumewith every fixture built; since obs-c-oracle: Free what port_comparison's fixtures allocate #2159 the full run no longer stops atbmem/count.Overlap: no open PR touches
get_source_volume()orapply_audio_volume(). obs-source: Port the deinterlace draw decisions #2153 touchesobs-source-deinterlace.c.hand obs-core: Port the source load migration and value rules #2157 addsobs-source-load.c.h; neither touchesobs-source.c.h. The size routing functions (rust: Port the source size query routing in obs-source.c to obs-source #2149, in progress) are not changed here. The shared lists (source-sets.json, the export lists,test-graph.json,port_comparison.rs) take one sorted entry each, as every port does.No user-visible change, so no
docs/features.mdline.RED → GREEN
a6abaa16a.soldr cargo test -p obs-data --test obs-tests-core source::volume_applyfails 23 of 25 ontodo!()(obs_source_volume_snap,_action_due,_step,_mixes). The two that pass read only constants: the epsilon's bits and the enum's values.62571ab1c, Tier 1 25/25. On the head2cce5e152(rebased on2c594d844). The C builds, the ctest runs and the export counts ran on11036f4f3:libobs/andtest/are identical between the two, and both trees are current for the head (ninja has nothing to rebuild):test_source_volume_apply_steps14/14, compiled C and_rust;test_source_audio_ranges,test_source_volume_mix,test_source_ptm_gate_stepsand_rust,test_audio_capture_mix_race,test_scene_audio_actions,test_scene_audio_action_steps,test_source_volume_apply_stepsand_rust) pass 7/7 on the C backend and 9/9 against the hybrid libobs andlibobs-c-reference, with no skips;test_deinterlace_2x_field_order_*tests (test_deinterlace_2x_field_order is timing-sensitive (yadif 2x 60i into 60): startup underrun and load-induced hold #456) andtest_group_hide_transition_audio(Flaky: real-time audio cmocka tests lose audio under machine load (test_vlc_playlist_gap, test_group_hide_transition_audio) #838), passed in both runs;ci/local_gate.py --test-diff origin/masterruns 3451 Rust tests, all passing (5 skipped, all#[ignore]: master's 4 and the exhaustive one);--lane lintpasses on the head and--lane crosson11036f4f3(since then only the bench file changed in Rust);Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (PR CI builds no OBS app: rungh workflow run ci.yml --ref <branch>for the full builds) and cross-checked with clang and MSVCRebased onto master after #2153 and #2157 merged (head
012703516). The only conflicts were the obs-source crate lists inrust/README.md,rust/obs-source/Cargo.tomlandlib.rs, merged by keeping both entries. After the rebase,soldr cargo test -p obs-data --test obs-tests-core source::andsoldr cargo test -p obs-c-oracle --locked --bench port_comparison(370 benches) pass. The earlier runs above are on the pre-rebase SHAs.Rebased onto master after #2171 and #2181 merged (head
5837736ad). The only conflicts were the shared lists and the crate prose lists, merged by keeping both entries. After the rebase, the crate's Tier 1 and Tier 3 tests andsoldr cargo test -p obs-c-oracle --locked --bench port_comparisonpass. The earlier lane runs above are on the pre-rebase SHAs.