Skip to content

rust: Port the source audio placement in obs-source.c to obs-source #2461

Closed

Description

@rdoupe

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.

Plan

The standard six commits:

  1. move;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in a libobs.ported-* group;
  5. Tier 3 parity;
  6. docs.

Activity

  1. added
    ready
    on Oct 26, 2026
  2. rdoupe commented on Oct 26, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2461 (round 8 unit 6, obs-source::audio_place).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions