Skip to content

libobs: Let audio follow a video timing move of more than 2 s - #522

Merged
zackees merged 3 commits into
obs-rust:masterfrom
rdoupe:fix/async-delay-audio
Oct 13, 2026
Merged

zackees merged 3 commits into
obs-rust:masterfrom
rdoupe:fix/async-delay-audio

Conversation

@rdoupe

@rdoupe rdoupe commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Description

A Video Delay (Async) filter of more than 2 s no longer breaks up the audio of the source it delays. Before, a Media Source with the filter at 4 s or more recorded, streamed and monitored its audio as loud grain; at 2 s and below it was clean.

The filter hands frames on late with their original timestamps. For a source that does not stamp with the system clock (the Media Source), libobs places the audio by the timing of the frame being shown, so the audio is delayed along with the video. Above 2 s (MAX_TS_VAR), source_output_audio_data() took that move for a timestamp jump and reset the timing to the system clock, and the next frame set it back: the audio alternated between the two timings every packet or two. The reset now only happens when the audio's own timestamps jumped. When a packet continued the previous one seamlessly, only the video timing moved, and the packet is placed by it, as below 2 s. The audio is continuous and stays in sync with the delayed video.

  1. test/cmocka: Video Delay (Async) over 2 s breaks up the source's audio: test_async_delay_audio registers a source like the Media Source (30 fps frames and 1024-frame audio packets stamped from when it started), puts it on the program behind the real async_delay_filter (core video with the OpenGL module built in the tree), and checks the mixed audio libobs hands to outputs. The cases are:

    • a 1 kHz tone with a 3 s and a 5 s delay: no breaks in the tone (the report);
    • clicks with a 3 s delay: each click is heard 3 s after it was captured, in sync with the video;
    • guards: a 1 s delay (tone and clicks), and no filter.

    3 of 6 fail today (40 to 105 breaks in 4 s; the clicks are not delayed at all), the same way in every run; the guards pass.

  2. libobs: Let audio follow a video timing move of more than 2 s: the fix. 6 of 6 pass.

Motivation and Context

Fixes #521 (upstream obsproject/obs-studio#13830, reported by simoncos, who measured it at several delays with a synthetic tone clip and published the scripts).

Reproduced in the current release (AppImage 33.0.0-beta6-799), headless over obs-websocket: a Media Source looping a 1 kHz tone clip, the filter set over the websocket, 20 s recordings. At 0 ms, 2000 ms, and 4000 ms raised from 2000 ms the tone has no breaks; at 8000 ms raised from 4000 ms, and at 4000 ms set before playback, it breaks every one or two audio packets (523 and 525 breaks in 19 s) and the level outside the tone rises from -42.7 dB to -13.4 and -14.4 dB relative to it.

Why this one: an audio corruption that ends up in recordings and streams, measured carefully by a real user; clearly a bug, small fix in libobs, reproduced in our release.

How Has This Been Tested?

Automated, in both libobs lanes (ENABLE_RUST_LIBOBS OFF and ON), on current master:

  • test_async_delay_audio: 3 of 6 cases fail at the RED commit and 6 of 6 pass at GREEN (2 runs each per lane, plus the runs while writing it), under a private Xvfb with software GL. ctest -V shows every case run, none skipped. With the system OpenGL module masked (as in CI), the cases still run and pass; without a display they skip.
  • Full ctest at GREEN, rebased on current master: 150 of 150 in each lane.
  • clang-format is clean. The test is registered on Linux only, like the other audio mixing tests.

Not tested:

  • A release build with the fix. Dropping the patched libobs into the extracted AppImage does not start (it links the system FFmpeg, which needs a newer glibc than the one bundled). Since that release, nothing else changed in obs-source.c, obs-audio.c or async-delay-filter.c; the test drives the same path with the real filter.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.
  • I have used AI tooling in the creation of this PR
  • I am an AI agent being used to assist with this pull request: Claude Code (Claude Opus 5.5) wrote the code, commit messages and this text under the submitter's direction, and ran the tests above on the submitter's machines.

🤖 Generated with Claude Code

@rdoupe
rdoupe requested a review from zackees as a code owner October 13, 2026 09:04
rdoupe and others added 3 commits October 13, 2026 02:11
With a Video Delay (Async) filter of 4 s or more on a Media Source, the
recorded audio turns into broadband grain; at 2 s and below it is clean.
The filter hands frames on late with their original timestamps, and
libobs places the source's audio by the timing of the frame being shown
(timing_adjust), so the audio is delayed with the video. When that
timing moves by more than MAX_TS_VAR (2 s) between two audio packets,
source_output_audio_data() takes it for a timestamp jump and resets the
timing to the system clock; the next frame sets it back, and every
packet or two lands by the other timing.

The test registers a source like the Media Source: 30 fps frames and
1024-frame packets of a 1 kHz tone (or of silence with a click every
1.5 s, each click a different length), stamped from when it started
rather than with the system clock. It puts the source on the program
behind the filter and checks the mixed audio libobs hands to outputs: the tone must have no breaks, and each
click must lag its capture by the video delay. Cases at 3 s and 5 s fail
(70 to 94 breaks in 4 s; clicks not delayed at all), guards at 1 s and
without the filter pass. Mixing needs core video, so the cases run under
xvfb-run on Linux and skip without a display.

Reported upstream by simoncos.

Refs obs-rust#521.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Video Delay (Async) filter hands frames on late with their original
timestamps. For a source that does not stamp with the system clock (the
Media Source), libobs places the audio by the timing of the frame being
shown, so the audio is delayed along with the video: below 2 s that
works. Above it, the jump in the audio's system time between two packets
exceeds MAX_TS_VAR, and source_output_audio_data() resets the timing to
the system clock, which the next frame sets back: the audio alternates
between the two timings every packet or two and comes out as grain.

That reset is meant for a source whose audio timestamps jumped ahead of
its video. When the audio continued seamlessly (it was smoothed onto the
previous packet), only the timing moved, so place the packet by it, as
for smaller moves. The audio is then continuous and stays in sync with
the delayed video.

Fixes obs-rust#521.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=bdf710b6df11aaf20fa503296b0b9df416aea3d9 secs=748 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791884062,"gate":"rust/all/fmt","host":"linux-x86_64","key":"8bef74eca9b50488bf98b74a4e9c36c6130d689ceca7050ef3a3512551a5d5c8","lane":"lint","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":66,"stamp":"00e44edf4c1ce464f26930208930c333","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"8bef74eca9b50488bf98b74a4e9c36c6130d689ceca7050ef3a3512551a5d5c8","lane":"lint","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":66,"stamp":"3c303e0663a9cdc1858a84d028ea78e0","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"326104764aa1e2379da25c2e904db878aa0432dfb908ffec6ebb3f9acdd3261b","lane":"rust-test","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":409,"stamp":"d2eca65f54e830d9e7c3e2a4983dc826","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"b96b8cddd0a5021cf0b70d1c77b78ca0","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"c67f26cd9e33f72951447b79128f64bd","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"8a5a11070734544422a167905a10ba48","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"369cc67f5a1687d1cc0b478143308840","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"3fdb5173613cb3e54297af467cd2b598","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"8fb57e219a64c2ab6bad4a651de792f50631bcb64fbe24823677ec8508d4360a","lane":"cross","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":167,"stamp":"63aaeed3ec093cbb53fec62e51f8819c","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
Ci-Attestation: {"at":1791884062,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"43a088a01dfc7a6edc0784935ea45acc78780f0b2aeaf5b14a6ada26d80ce826","lane":"tier2-linux","parents":["8949f6aa3fc3b09c68f20b73eb1f1d9040113a8c"],"secs":106,"stamp":"e3ba7b4009d0d6659ea1a81f472c803e","tree":"bdf710b6df11aaf20fa503296b0b9df416aea3d9","v":1,"via":"run"}
@zackees

zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Verified locally under xvfb-run (Tier 2 image + mesa):

  • RED b9c4002: test_async_delay_audio fails 3 of 6 (audio_follows_3s_video_delay, tone_continuous_with_3s_video_delay, tone_continuous_with_5s_video_delay)
  • GREEN 48248e9: 6/6. It needs a display, so plain CI skips it.
  • The lint lane wanted gersemi formatting on the new .cmake file, so I added a format-only commit.
  • Rebased on master, local gate passed; pushed as add064b.

@zackees
zackees force-pushed the fix/async-delay-audio branch from 48248e9 to add064b Compare October 13, 2026 09:34
@zackees
zackees merged commit 7d47490 into obs-rust:master Oct 13, 2026
19 checks passed
rdoupe added a commit to rdoupe/obs-studio that referenced this pull request Oct 23, 2026
…io-timing.c

Behaviour-neutral extraction before the Rust port. The decisions of
source_output_audio_data() in obs-source.c.h, which place each audio
packet of a source in time, move to libobs/obs-source-audio-timing.c.h as
two pure steps around audio_buf_mutex and the buffer start rule, declared
in the new libobs/obs-source-audio-timing.h without EXPORT (hidden, as
-fvisibility=hidden keeps them):

- obs_source_audio_timing_pre_lock(): the direct timestamp check, then
  reset (timing not set), jump (more than MAX_TS_VAR off and not direct),
  smooth (within TS_SMOOTHING_THRESHOLD, with the async decoupled
  re-anchor and the drift error) or log, and next_audio_ts_min;
- obs_source_audio_timing_under_lock(): push back or place, the reset when
  the system time jumped and the audio was not continuous (obs-rust#522), the sync
  and resampler offsets, next_audio_sys_ts_min and the "sync offset
  changed, so place" rule (obs-rust#333);
- obs_source_audio_timing_buffer_start(): the audio_ts rule of
  reset_audio_data_at_sys_time() (obs-rust#286).

source_output_audio_data() reads the fields into a struct, calls a step,
and writes the results back itself, in the order the stores happened
before: timing_adjust = 0 then timing_set for a direct timestamp,
timing_set then timing_adjust for a reset, the re-anchor, then
next_audio_ts_min; under the lock the reset, next_audio_sys_ts_min and
last_sync_offset. The volatile timing_adjust is still read before the
lock for the packet and again under it for next_audio_sys_ts_min, as
before. handle_ts_jump() (the lock and the buffer clear),
audio_resampler_set_compensation_error(), conv_frames_to_time() (the
caller passes the packet's duration, so the steps never divide by the
sample rate), the deque place and push-back, the signal, the muting and
both log lines, with the same messages, stay in obs-source.c.h. All
arithmetic is the same uint64_t arithmetic, wrapping where it wrapped.

What differs is only when the fields are read: each step's inputs are
read once, just before it, where the code read some of them a few
statements later (timing_set after the direct store, sync_offset after
the reset branch). That is visible only to a thread writing them in that
window without the lock, which was already a data race.

reset_audio_timing() stays for handle_ts_jump() and
obs_source_show_preloaded_video(), and uint64_diff() for the resampler
restart check of obs-rust#546; the steps have their own copy of the distance.
The thresholds are named in the header, and obs-source.c.h checks them
against TS_SMOOTHING_THRESHOLD and MAX_TS_VAR at compile time.

The new file joins libobs.core-source with libobs.pch.h, which includes
the new header. The exported symbol sets are unchanged (1766).

Refs obs-rust#1932
rdoupe added a commit to rdoupe/obs-studio that referenced this pull request Oct 23, 2026
test_source_audio_timing_steps compiles libobs/obs-source-audio-timing.c.h
(ASan and UBSan, no libobs core) and calls only its three hidden
functions, so it runs on every platform. Each case pins every output of a
step, that the step writes its numeric outputs (they start as a garbage
byte pattern) and that it leaves its inputs alone. 29 cases:

- obs_source_audio_timing_pre_lock(): direct timestamps on either side of
  the clock; direct at MAX_TS_VAR - 1, MAX_TS_VAR and MAX_TS_VAR + 1 (it
  is strict); the reset when the timing is not set, which ignores the
  expected timestamp and the async flags; next_audio_ts_min == 0 keeps
  the packet's timestamp; smoothing with a positive, zero and negative
  drift error; the 70 ms threshold at 70 ms - 1 ns (smoothed), 70 ms and
  70 ms + 1 ns (logged), either side; MAX_TS_VAR at 2 s - 1 ns and 2 s
  (logged) and 2 s + 1 ns (a jump, which resets the timing to the packet);
  a direct timestamp never jumps; the re-anchor of an unbuffered,
  decoupled async source (to os_time minus the packet's own timestamp,
  after the direct store) and none with only one of the flags.
- obs_source_audio_timing_under_lock(): appended when contiguous, placed
  when next_audio_sys_ts_min is 0; the 70 ms threshold either side; the
  reset at 2 s + 1 ns and none at 2 s; no reset when the audio was
  continuous (obs-rust#522), and the reset using the packet's own timestamp; the
  sync and resampler offsets applied after the comparison (41fa9c1);
  next_audio_sys_ts_min from the timing_adjust read under the lock, not
  the packet's; any sync offset change places the packet and is kept,
  from 0 too (obs-rust#333).
- obs_source_audio_timing_buffer_start(): os_time plus the sync offset
  minus the resampler offset, 0 for 0 (obs-rust#286).
- Seven packet sequences through a fake source (the fields, and a model
  of handle_ts_jump() and of the buffer start of
  source_output_audio_place()): contiguous packets with jitter, a
  system-clock source, the sync offset changed between packets (up, down
  and negative, before the buffer's start), a timestamp jump keeping the
  sync offset, a Video Delay (Async) timing move of 4 s followed rather
  than reset (obs-rust#522), the decoupled re-anchor, and next_audio_ts_min 0
  followed by an audio-mix reset.

Characterized, not endorsed: a timestamp ahead of the clock gives a
timing_adjust near UINT64_MAX; the packet's end, timestamp +
timing_adjust, a negative sync offset larger than the packet's system
time and a resampler offset larger than it all wrap; the distance is not
modular, so timestamps on either side of UINT64_MAX are a jump; a direct
timestamp more than 2 s from the expected one is logged as exceeding the
smoothing threshold, not treated as a jump. The sequences also show that
the first placement sets next_audio_sys_ts_min to the packet's time with
its sync offset, so with a non-zero offset the second packet is placed
too, right after the first.

It is in the native test graph. The five real-libobs tests are
unchanged.

Refs obs-rust#1932
rdoupe added a commit to rdoupe/obs-studio that referenced this pull request Oct 23, 2026
Ports libobs/obs-source-audio-timing.c.h, the audio timestamp placement
of source_output_audio_data(), to the audio_timing module of the new
rust/obs-source. source_output_audio_data() and
reset_audio_data_at_sys_time() stay C in obs-source.c.h: the field reads
and the stores in their order (the volatile timing_set and timing_adjust
included), audio_buf_mutex, handle_ts_jump(), the resampler's
compensation, conv_frames_to_time(), the deque, the signal, the muting
and the log lines. The hybrid libobs drops the C file and links the Rust
shims in its place.

Safe core (src/audio_timing.rs): pre_lock() decides direct (strictly
within MAX_TS_VAR of the clock), then reset (timing not set), jump (more
than MAX_TS_VAR from the expected timestamp and not direct), smooth
(strictly within TS_SMOOTHING_THRESHOLD; the re-anchor of an unbuffered,
decoupled async source; the drift error) or exceeded, and the packet's
end. under_lock() appends when the packet's system time is the buffer's
end or within 70 ms of it, resets the timing to the packet's own
timestamp when it is more than 2 s off and the audio was not continuous
(obs-rust#522), adds the sync offset and takes off the resampler offset after
the comparison, sets next_audio_sys_ts_min from the timing_adjust read
under the lock, and places the packet whenever the sync offset changed
(obs-rust#333). buffer_start() is the obs-rust#286 rule. Every sum and difference is
wrapping_add/wrapping_sub where the C's uint64_t wraps; the drift error
is cast_signed() of the wrapped difference, the C's (int64_t), and the
sync offset is cast_unsigned(), the C's conversion of int64_t to
uint64_t. The module denies clippy's arithmetic, indexing, as, unwrap,
expect, panic, unimplemented and unreachable lints, keeps no state and
takes no lock.

Shim (src/ffi/source_audio_timing.rs): the three functions keep the C
signatures. The two structs are mirrored #[repr(C)], the enum as u32 (C
stores it as an int or unsigned int; every value fits). Each shim reads
the input fields and writes the output fields through the pointer one
field at a time, so the inputs and the padding keep their bytes, as with
the C, and it never reads an output field. Intentional difference: a null
pointer does nothing, where the C dereferences it; libobs passes a struct
on its stack.

Kept, characterized, not endorsed (test_source_audio_timing_steps): a
timestamp ahead of the clock gives a timing_adjust near u64::MAX;
timestamp + timing_adjust, the packet's end, a negative sync offset
larger than the packet's system time and a resampler offset larger than
it wrap; the distance is not modular; a direct timestamp more than 2 s
from the expected one is logged, not a jump.

C side: the file leaves libobs.core-source for its own group,
libobs.ported-source-audio-timing (LIBOBS_PORTED_SOURCES), whose PCH is
only obs-source-audio-timing.h; libobs.pch.h now includes the header for
obs-source.c. The three 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 links the crate's ffi. The exported
symbol sets are unchanged and equal: 1766 on the C backend, the hybrid
and libobs-c-reference. ci/test_ported_sources.py checks the group on
every host.

test_source_audio_timing_steps still compiles the C file into itself,
unchanged. The new test_source_audio_timing_steps_rust builds the same
test source against libobs_rust-static instead, as
test_scene_bounds_place_rust does, and links: the test includes only the
header and calls only the three functions, and the archive's obs-source
member needs nothing from libobs or the other crates (it pulls in only
libgcc_s and libm). It passes 29 of 29. The five real-libobs tests see
the swap through the hybrid.

Tier 1 source::audio_timing passes 35/35.

Refs obs-rust#1932
rdoupe added a commit to rdoupe/obs-studio that referenced this pull request Oct 23, 2026
…he C

Oracle (oracle/source_audio_timing.c): the original
obs-source-audio-timing.c.h, unmodified, with its three functions renamed
to oracle_*, plus the layout of both structs, the size of the enum, the
action values and the two thresholds. Like the calldata and audio
controls oracles, it turns off -Wsign-conversion around the include: the
C adds the int64_t sync offset to a uint64_t, as libobs always did, and
libobs builds without that warning.

Tier 3 (tests/source/audio_timing_parity.rs). The structs cross the ABI
as bytes: each run fills a buffer with a random byte pattern (padding and
output fields included), writes the inputs, runs the C step on one copy
and the shim on another, and compares every byte, so the outputs must be
equal and neither side may write an input, the padding or anything the
other does not write. Runs:
- the layout of both structs (size, alignment, every offset), the enum's
  size, the action values and the thresholds against the C header;
- each step over the special values of the u64 and i64 ranges (0, 1,
  70 ms and 2 s +-1, 2^63 +-1, the ends, the thresholds below u64::MAX)
  with every flag: 186624 pre-lock runs, 349920 under-lock runs, and
  2304 buffer starts;
- proptests of each step over full-range values with the expected
  timestamp, the system time and next_audio_sys_ts_min drawn near the
  thresholds as often as anywhere (20000 cases each);
- 10000 random sequences of 2 to 50 packets through a model of
  source_output_audio_data() (the stores in their order,
  handle_ts_jump(), the buffer start of source_output_audio_place()),
  driven once by the C steps and once by the shims, from a random or empty
  source state, with the sync offset changed, the async flags toggled,
  the timing moved by the video thread (before the packet and between
  the two reads of timing_adjust) and timing_set cleared by the audio mix
  between packets. The step structs, the buffer start and the
  written-back state must be equal after every packet. A second test
  checks that the sequences reach every action and both under-lock
  outcomes, the reset, the re-anchor, direct timestamps and sync offset
  changes, more than 100 times each in 2000 sequences.

The whole parity module passed 26 runs in a row with fresh random seeds
(obs-rust#1930); no regression file came up.

Excluded, the intentional difference: a null struct pointer, which the C
dereferences and the shims ignore (checked on the Rust side only).

Mutation check (done once, not committed): 51 of 51 mutants fail. The 43
core mutants fail Tier 1 and Tier 3: each comparison at its threshold
(direct, jump, smooth, push back and the reset, < and <= or > and >=),
direct not setting the timing, a direct timestamp allowed to jump, the
reset adjust reversed, next_audio_ts_min 0 or next_audio_sys_ts_min 0
compared like other values, the re-anchor with either flag or to the
smoothed timestamp, the drift error reversed or clamped, the smoothed
timestamp or continuity dropped, diff or the jump's adjust not reported,
the end from the unsmoothed timestamp, no push back on an exact match,
obs-rust#522 reverted (a reset when continuous), the reset to the smoothed
timestamp or keeping the old system time, the sync offset not applied or
in the comparison, the resampler offset added, next_audio_sys_ts_min from
the packet's adjust, obs-rust#333 reverted, the pre-obs-rust#333 rule (a change from 0
does not place), last_sync_offset not kept, the buffer start for 0, the
distance not symmetric, and every wrapping operation (twelve of them,
the (int64_t) included) made saturating. The 8 shim mutants (an output
not written, an input written, two actions swapped, the two adjusts
swapped, an argument changed) fail Tier 3; Tier 1 does not reach the
shims.

Refs obs-rust#1932
rdoupe added a commit to rdoupe/obs-studio that referenced this pull request Oct 23, 2026
* libobs: Move the source audio timestamp placement into obs-source-audio-timing.c

Behaviour-neutral extraction before the Rust port. The decisions of
source_output_audio_data() in obs-source.c.h, which place each audio
packet of a source in time, move to libobs/obs-source-audio-timing.c.h as
two pure steps around audio_buf_mutex and the buffer start rule, declared
in the new libobs/obs-source-audio-timing.h without EXPORT (hidden, as
-fvisibility=hidden keeps them):

- obs_source_audio_timing_pre_lock(): the direct timestamp check, then
  reset (timing not set), jump (more than MAX_TS_VAR off and not direct),
  smooth (within TS_SMOOTHING_THRESHOLD, with the async decoupled
  re-anchor and the drift error) or log, and next_audio_ts_min;
- obs_source_audio_timing_under_lock(): push back or place, the reset when
  the system time jumped and the audio was not continuous (obs-rust#522), the sync
  and resampler offsets, next_audio_sys_ts_min and the "sync offset
  changed, so place" rule (obs-rust#333);
- obs_source_audio_timing_buffer_start(): the audio_ts rule of
  reset_audio_data_at_sys_time() (obs-rust#286).

source_output_audio_data() reads the fields into a struct, calls a step,
and writes the results back itself, in the order the stores happened
before: timing_adjust = 0 then timing_set for a direct timestamp,
timing_set then timing_adjust for a reset, the re-anchor, then
next_audio_ts_min; under the lock the reset, next_audio_sys_ts_min and
last_sync_offset. The volatile timing_adjust is still read before the
lock for the packet and again under it for next_audio_sys_ts_min, as
before. handle_ts_jump() (the lock and the buffer clear),
audio_resampler_set_compensation_error(), conv_frames_to_time() (the
caller passes the packet's duration, so the steps never divide by the
sample rate), the deque place and push-back, the signal, the muting and
both log lines, with the same messages, stay in obs-source.c.h. All
arithmetic is the same uint64_t arithmetic, wrapping where it wrapped.

What differs is only when the fields are read: each step's inputs are
read once, just before it, where the code read some of them a few
statements later (timing_set after the direct store, sync_offset after
the reset branch). That is visible only to a thread writing them in that
window without the lock, which was already a data race.

reset_audio_timing() stays for handle_ts_jump() and
obs_source_show_preloaded_video(), and uint64_diff() for the resampler
restart check of obs-rust#546; the steps have their own copy of the distance.
The thresholds are named in the header, and obs-source.c.h checks them
against TS_SMOOTHING_THRESHOLD and MAX_TS_VAR at compile time.

The new file joins libobs.core-source with libobs.pch.h, which includes
the new header. The exported symbol sets are unchanged (1766).

Refs obs-rust#1932

* test: Characterize the source audio timestamp placement

test_source_audio_timing_steps compiles libobs/obs-source-audio-timing.c.h
(ASan and UBSan, no libobs core) and calls only its three hidden
functions, so it runs on every platform. Each case pins every output of a
step, that the step writes its numeric outputs (they start as a garbage
byte pattern) and that it leaves its inputs alone. 29 cases:

- obs_source_audio_timing_pre_lock(): direct timestamps on either side of
  the clock; direct at MAX_TS_VAR - 1, MAX_TS_VAR and MAX_TS_VAR + 1 (it
  is strict); the reset when the timing is not set, which ignores the
  expected timestamp and the async flags; next_audio_ts_min == 0 keeps
  the packet's timestamp; smoothing with a positive, zero and negative
  drift error; the 70 ms threshold at 70 ms - 1 ns (smoothed), 70 ms and
  70 ms + 1 ns (logged), either side; MAX_TS_VAR at 2 s - 1 ns and 2 s
  (logged) and 2 s + 1 ns (a jump, which resets the timing to the packet);
  a direct timestamp never jumps; the re-anchor of an unbuffered,
  decoupled async source (to os_time minus the packet's own timestamp,
  after the direct store) and none with only one of the flags.
- obs_source_audio_timing_under_lock(): appended when contiguous, placed
  when next_audio_sys_ts_min is 0; the 70 ms threshold either side; the
  reset at 2 s + 1 ns and none at 2 s; no reset when the audio was
  continuous (obs-rust#522), and the reset using the packet's own timestamp; the
  sync and resampler offsets applied after the comparison (41fa9c1);
  next_audio_sys_ts_min from the timing_adjust read under the lock, not
  the packet's; any sync offset change places the packet and is kept,
  from 0 too (obs-rust#333).
- obs_source_audio_timing_buffer_start(): os_time plus the sync offset
  minus the resampler offset, 0 for 0 (obs-rust#286).
- Seven packet sequences through a fake source (the fields, and a model
  of handle_ts_jump() and of the buffer start of
  source_output_audio_place()): contiguous packets with jitter, a
  system-clock source, the sync offset changed between packets (up, down
  and negative, before the buffer's start), a timestamp jump keeping the
  sync offset, a Video Delay (Async) timing move of 4 s followed rather
  than reset (obs-rust#522), the decoupled re-anchor, and next_audio_ts_min 0
  followed by an audio-mix reset.

Characterized, not endorsed: a timestamp ahead of the clock gives a
timing_adjust near UINT64_MAX; the packet's end, timestamp +
timing_adjust, a negative sync offset larger than the packet's system
time and a resampler offset larger than it all wrap; the distance is not
modular, so timestamps on either side of UINT64_MAX are a jump; a direct
timestamp more than 2 s from the expected one is logged as exceeding the
smoothing threshold, not treated as a jump. The sequences also show that
the first placement sets next_audio_sys_ts_min to the packet's time with
its sync offset, so with a non-zero offset the second packet is placed
too, right after the first.

It is in the native test graph. The five real-libobs tests are
unchanged.

Refs obs-rust#1932

* obs-source: Add Tier 1 tests for the source audio timestamp placement port

RED for the port of libobs/obs-source-audio-timing.c.h to rust/obs-source,
a new crate for the units extracted from libobs/obs-source.c (one crate per
libobs area, as rust/obs-scene is for obs-scene.c, obs-rust#444). The safe core,
audio_timing, is a stub (todo!()): Action (keep, reset, jump, smooth,
exceeded), PreLockInput and PreLock (obs_source_audio_timing_pre_lock()),
UnderLockInput and UnderLock (obs_source_audio_timing_under_lock()),
buffer_start() (obs_source_audio_timing_buffer_start()), distance()
(uint64_diff()), TS_SMOOTHING_THRESHOLD and MAX_TS_VAR. The crate depends
on nothing: plain u64, i64 and bool in and out.

tests/source/audio_timing.rs ports test_source_audio_timing_steps 1:1:
its 29 cases under the same names (steps_*), in the same order, with the
same inputs and expectations, the characterized-not-endorsed wraps and
the fake source of the sequences included. The C test's checks that a
step writes its outputs and leaves its inputs alone have nothing to check
in the safe API, which takes its inputs by value and returns every
output.

Edge cases (edge_*): the distance (not modular, at both ends of the
range); every flag combination with the timestamp, clock, expected
timestamp and duration over the special values of the u64 range and the
thresholds +-1, checking no panic and what each action implies (direct
exactly when within MAX_TS_VAR, the reset and jump adjust os_time -
timestamp, a smoothed drift under 70 ms, no diff or adjust outside their
actions, the end is timestamp + duration wrapped); the same for the
under-lock step over special u64 and i64 values (the reset exactly when
over MAX_TS_VAR and not continuous, the placed time with wrapped offsets,
push back exactly when contiguous and the offset unchanged); the buffer
start over special values; and two proptests of the same over full-range
values (4000 cases each).

The tests are a module of the existing core category binary,
obs-tests-core (rust/obs-data/tests/core.rs), as obs-scene's are; no new
test binary. The crate joins the workspace through its rust/* glob.

soldr cargo test -p obs-data --test obs-tests-core source:: fails 35 of
35 with "not yet implemented".

Refs obs-rust#1932

* obs-source: Port the source audio timestamp placement

Ports libobs/obs-source-audio-timing.c.h, the audio timestamp placement
of source_output_audio_data(), to the audio_timing module of the new
rust/obs-source. source_output_audio_data() and
reset_audio_data_at_sys_time() stay C in obs-source.c.h: the field reads
and the stores in their order (the volatile timing_set and timing_adjust
included), audio_buf_mutex, handle_ts_jump(), the resampler's
compensation, conv_frames_to_time(), the deque, the signal, the muting
and the log lines. The hybrid libobs drops the C file and links the Rust
shims in its place.

Safe core (src/audio_timing.rs): pre_lock() decides direct (strictly
within MAX_TS_VAR of the clock), then reset (timing not set), jump (more
than MAX_TS_VAR from the expected timestamp and not direct), smooth
(strictly within TS_SMOOTHING_THRESHOLD; the re-anchor of an unbuffered,
decoupled async source; the drift error) or exceeded, and the packet's
end. under_lock() appends when the packet's system time is the buffer's
end or within 70 ms of it, resets the timing to the packet's own
timestamp when it is more than 2 s off and the audio was not continuous
(obs-rust#522), adds the sync offset and takes off the resampler offset after
the comparison, sets next_audio_sys_ts_min from the timing_adjust read
under the lock, and places the packet whenever the sync offset changed
(obs-rust#333). buffer_start() is the obs-rust#286 rule. Every sum and difference is
wrapping_add/wrapping_sub where the C's uint64_t wraps; the drift error
is cast_signed() of the wrapped difference, the C's (int64_t), and the
sync offset is cast_unsigned(), the C's conversion of int64_t to
uint64_t. The module denies clippy's arithmetic, indexing, as, unwrap,
expect, panic, unimplemented and unreachable lints, keeps no state and
takes no lock.

Shim (src/ffi/source_audio_timing.rs): the three functions keep the C
signatures. The two structs are mirrored #[repr(C)], the enum as u32 (C
stores it as an int or unsigned int; every value fits). Each shim reads
the input fields and writes the output fields through the pointer one
field at a time, so the inputs and the padding keep their bytes, as with
the C, and it never reads an output field. Intentional difference: a null
pointer does nothing, where the C dereferences it; libobs passes a struct
on its stack.

Kept, characterized, not endorsed (test_source_audio_timing_steps): a
timestamp ahead of the clock gives a timing_adjust near u64::MAX;
timestamp + timing_adjust, the packet's end, a negative sync offset
larger than the packet's system time and a resampler offset larger than
it wrap; the distance is not modular; a direct timestamp more than 2 s
from the expected one is logged, not a jump.

C side: the file leaves libobs.core-source for its own group,
libobs.ported-source-audio-timing (LIBOBS_PORTED_SOURCES), whose PCH is
only obs-source-audio-timing.h; libobs.pch.h now includes the header for
obs-source.c. The three 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 links the crate's ffi. The exported
symbol sets are unchanged and equal: 1766 on the C backend, the hybrid
and libobs-c-reference. ci/test_ported_sources.py checks the group on
every host.

test_source_audio_timing_steps still compiles the C file into itself,
unchanged. The new test_source_audio_timing_steps_rust builds the same
test source against libobs_rust-static instead, as
test_scene_bounds_place_rust does, and links: the test includes only the
header and calls only the three functions, and the archive's obs-source
member needs nothing from libobs or the other crates (it pulls in only
libgcc_s and libm). It passes 29 of 29. The five real-libobs tests see
the swap through the hybrid.

Tier 1 source::audio_timing passes 35/35.

Refs obs-rust#1932

* obs-source: Check the source audio timestamp placement port against the C

Oracle (oracle/source_audio_timing.c): the original
obs-source-audio-timing.c.h, unmodified, with its three functions renamed
to oracle_*, plus the layout of both structs, the size of the enum, the
action values and the two thresholds. Like the calldata and audio
controls oracles, it turns off -Wsign-conversion around the include: the
C adds the int64_t sync offset to a uint64_t, as libobs always did, and
libobs builds without that warning.

Tier 3 (tests/source/audio_timing_parity.rs). The structs cross the ABI
as bytes: each run fills a buffer with a random byte pattern (padding and
output fields included), writes the inputs, runs the C step on one copy
and the shim on another, and compares every byte, so the outputs must be
equal and neither side may write an input, the padding or anything the
other does not write. Runs:
- the layout of both structs (size, alignment, every offset), the enum's
  size, the action values and the thresholds against the C header;
- each step over the special values of the u64 and i64 ranges (0, 1,
  70 ms and 2 s +-1, 2^63 +-1, the ends, the thresholds below u64::MAX)
  with every flag: 186624 pre-lock runs, 349920 under-lock runs, and
  2304 buffer starts;
- proptests of each step over full-range values with the expected
  timestamp, the system time and next_audio_sys_ts_min drawn near the
  thresholds as often as anywhere (20000 cases each);
- 10000 random sequences of 2 to 50 packets through a model of
  source_output_audio_data() (the stores in their order,
  handle_ts_jump(), the buffer start of source_output_audio_place()),
  driven once by the C steps and once by the shims, from a random or empty
  source state, with the sync offset changed, the async flags toggled,
  the timing moved by the video thread (before the packet and between
  the two reads of timing_adjust) and timing_set cleared by the audio mix
  between packets. The step structs, the buffer start and the
  written-back state must be equal after every packet. A second test
  checks that the sequences reach every action and both under-lock
  outcomes, the reset, the re-anchor, direct timestamps and sync offset
  changes, more than 100 times each in 2000 sequences.

The whole parity module passed 26 runs in a row with fresh random seeds
(obs-rust#1930); no regression file came up.

Excluded, the intentional difference: a null struct pointer, which the C
dereferences and the shims ignore (checked on the Rust side only).

Mutation check (done once, not committed): 51 of 51 mutants fail. The 43
core mutants fail Tier 1 and Tier 3: each comparison at its threshold
(direct, jump, smooth, push back and the reset, < and <= or > and >=),
direct not setting the timing, a direct timestamp allowed to jump, the
reset adjust reversed, next_audio_ts_min 0 or next_audio_sys_ts_min 0
compared like other values, the re-anchor with either flag or to the
smoothed timestamp, the drift error reversed or clamped, the smoothed
timestamp or continuity dropped, diff or the jump's adjust not reported,
the end from the unsmoothed timestamp, no push back on an exact match,
obs-rust#522 reverted (a reset when continuous), the reset to the smoothed
timestamp or keeping the old system time, the sync offset not applied or
in the comparison, the resampler offset added, next_audio_sys_ts_min from
the packet's adjust, obs-rust#333 reverted, the pre-obs-rust#333 rule (a change from 0
does not place), last_sync_offset not kept, the buffer start for 0, the
distance not symmetric, and every wrapping operation (twelve of them,
the (int64_t) included) made saturating. The 8 shim mutants (an output
not written, an input written, two actions swapped, the two adjusts
swapped, an argument changed) fail Tier 3; Tier 1 does not reach the
shims.

Refs obs-rust#1932

* docs: Record the source audio timestamp placement port

docs/rust-port/naming.md maps libobs/obs-source*.c.h to the new
rust/obs-source, as libobs/obs-scene*.c.h maps to rust/obs-scene. The
rust/README.md crate table lists rust/obs-source, and its port table has
a row for libobs/obs-source-audio-timing.c.h: what stays C, the seam (the
field reads and the stores in their order), the wrapping arithmetic, what
the characterization pins and the port keeps, the intentional difference
(a null struct pointer), the _rust variant of the steps test, the five
real-libobs tests and what Tier 3 compares. The crate's description and
lib.rs say what it holds.

port_comparison gets its own bench file,
benches/port_comparison/source_audio_timing.rs: each step over 1024
packets that reach every branch, the outputs folded into a checksum both
sides must match. On x86_64 Linux (GCC, not pinned; median per 1024
packets): pre_lock 5.12 us Rust and 4.78 us C (1.07x),
under_lock 4.50 us Rust and 3.95 us C (1.14x), under 0.6 ns more per
packet.

Fixes obs-rust#1932
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Nov 6, 2026
…bs-rust#3752)

* test/cmocka: Audio on a clock of its own must reach the program

NDI Test Patterns stamps its audio about 14191 s ahead of its video. Since
obs-rust#522, a continuous audio packet follows the timing of the source's video,
which for audio on another clock places it hours from the mix: the program
is silent until a packet that does not continue the previous one resets
the timing.

The test registers an async source whose audio is stamped hours ahead of
or behind its video and checks that the mixed audio carries its tone.
RED: 100 ms packets with audio 4 h ahead and 3 h behind get 0 % on the
current C and hybrid libobs and on 7d47490 (obs-rust#522); upstream 33.0.1 and
563e9eb (before obs-rust#522) give 93 %, a clean tone. Guards with 1024-frame
packets and with one clock pass everywhere.

Refs obs-rust#3747.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* libobs: Follow the video timing only for audio on the video's clock

Since obs-rust#522, an audio packet that continues the previous one follows the
timing of the source's video when that moved more than MAX_TS_VAR, so a
Video Delay (Async) filter can delay audio by more than 2 s (obs-rust#521). Audio
on a clock of its own then lands far from the mix: NDI Test Patterns
stamps its audio about 14191 s ahead of its video, and the program lost
it until a packet that did not continue the previous one reset the
timing.

libobs now keeps the timestamp of the latest frame a source output, before
any async filter (last_output_frame_ts, under audio_buf_mutex, written
before async_mutex is taken). A continuous packet follows the video's
timing only when it is less than MAX_TS_VAR from that frame, or the source
output no frame; otherwise the timing resets to the system clock, as
before obs-rust#522. The decision is obs_source_audio_timing_follows_video() in
the C and obs_source::audio_timing::follows_video() in the Rust port; the
ported output path reads the field through a new seam getter.

test_async_audio_own_clock passes (93 % tone in all four cases, was 0 %
with audio hours ahead or behind), and test_async_delay_audio (obs-rust#521)
still passes 6 of 6 on the C libobs. Rust: Tier 1 for the step and the
output path, Tier 3 against the C oracle on special values and random
inputs.

Fixes obs-rust#3747.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=f97a7d4c56f12c2948b031ba772e4eaedf839143 secs=399 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a
Ci-Attestation: {"at":1793966841,"gate":"rust/all/fmt","host":"linux-x86_64","key":"ab555b7ca8c13baccb8605d25d90f0840154f52de503e555687e77cc5bfb908f","lane":"lint","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":94,"stamp":"4cb9934b866f09b9e4f726e424b78ca9","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"ab555b7ca8c13baccb8605d25d90f0840154f52de503e555687e77cc5bfb908f","lane":"lint","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":94,"stamp":"1a58cf904554207eee6a75d1bfb99346","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"040b0acda8a23182425c05265f3dbfad2dd017d518001414e407141623f994e1","lane":"rust-test","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":120,"stamp":"10d6928b817b930528e826b21ad54aac","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":100,"stamp":"ec3f027e102f6cec6fca4b4a6b473f89","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":100,"stamp":"1620bbc0c98685fcd7fd4b240a31ba93","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":100,"stamp":"fe7d1759117ac1bc0dc31f8e9c88f318","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":100,"stamp":"1e07e8daaf2abb6ec87dc6cf535c76d0","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"81dc5736d38e2625b085e075f8eb7425aa82dc03e2a2ccdfa20137ba28245d51","lane":"tier2-linux","parents":["1b076834fe6bf69e69f7ca2c9a4342a1c1ca1b88"],"secs":399,"stamp":"fc49fbe89bee44fbe61fdae4dbcb40ae","tree":"f97a7d4c56f12c2948b031ba772e4eaedf839143","v":1,"via":"run"}

* docs: Add the NDI audio clock fix to the features ledger

Refs obs-rust#3747.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=22765573e431d1d7641253e1718dfe08025bc583 secs=32 lanes=lint:run,rust-test:reused@040b0acda8a2,cross:reused@d75feb36b3b6,tier2-linux:reused@81dc5736d38e,macos-native:n/a,windows-native:n/a
Ci-Attestation: {"at":1793966985,"gate":"rust/all/fmt","host":"linux-x86_64","key":"1033a8b7f4e7bd6118f1660e2caf6ac2940f6fa5272c5b96741ebc97d9fb9571","lane":"lint","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":32,"stamp":"d0ac6392a40492487adb5fb8b90cbfa7","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"run"}
Ci-Attestation: {"at":1793966985,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"1033a8b7f4e7bd6118f1660e2caf6ac2940f6fa5272c5b96741ebc97d9fb9571","lane":"lint","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":32,"stamp":"24d841613fff5a172701668536d15c25","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"run"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"040b0acda8a23182425c05265f3dbfad2dd017d518001414e407141623f994e1","lane":"rust-test","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"b6b5fbd8d02c839f2dae65f0e5863d4c","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"2c04bd31973df15c26c0269d38c0bf47","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}
Ci-Attestation: {"at":1793966841,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"4d6e6b78775bc1421d7a82349efd680e","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}
Ci-Attestation: {"at":1793966841,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"fbd5880cf02a1ae5647592523de82fd8","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}
Ci-Attestation: {"at":1793966841,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"d75feb36b3b6b6b1a60bdda295767e5992fafa320e14cd194303a336e51b51cb","lane":"cross","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"8f8ccd8be7b17da4eabfcf082cfe85f4","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}
Ci-Attestation: {"at":1793966841,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"81dc5736d38e2625b085e075f8eb7425aa82dc03e2a2ccdfa20137ba28245d51","lane":"tier2-linux","parents":["11956f4db194c3397fa7a5998468a0e38af1a3de"],"secs":null,"stamp":"17518e94af3e246378b04b5703450aac","tree":"22765573e431d1d7641253e1718dfe08025bc583","v":1,"via":"reused"}

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

bug: libobs: Video Delay (Async) over 2 s breaks up the source's audio (upstream obsproject/obs-studio#13830)

2 participants