You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port the source audio placement in obs-source.c to obs-source #2461
Rust port, round 8 unit 6: the source audio placement and action timeline in libobs/obs-source.c.h, moved to obs-source::audio_place.
Scope
Rust takes over these decisions:
get_buf_placement and source_output_audio_place: the reset when there is no audio_ts or the packet is older, the byte placement, the drop past MAX_BUF_SIZE, and how much to pop off the back after the place;
source_output_audio_push_back: the drop past MAX_BUF_SIZE;
the last step of source_output_audio_data: nothing for a monitor-only source, otherwise push back or place;
apply_audio_actions: each action's frame (clamped to audio_ts, stopping at AUDIO_OUTPUT_FRAMES), the range filled with the previous volume, and the mixes to multiply.
C keeps both mutexes, the deques, reset_audio_data, apply_audio_action, get_source_volume (called after each action, as today), multiply_vol_data, and the reads of the sample rate and channel count.
Activity
rdoupe commentedon Oct 26, 2026
Claiming: #2461 (round 8 unit 6,
obs-source::audio_place).obs-source: Port the source audio placement and action timeline (obs-…