Skip to content

rust: Port libobs/obs-raw-audio-remove.c.h to obs-core #4716

Closed

Description

@zackees

Phase 6 core unit: replace obs_remove_raw_audio_callback with Rust in obs-core only after prerequisite #4715 lands. The prerequisite characterizes the actual exported wrapper against hybrid and C-reference libobs, then extracts it verbatim into libobs/obs-raw-audio-remove.c.h.

Preserve the initialized-core precondition, full size_t mix index, callback/parameter identity, and exactly one call to audio_output_disconnect on the main core audio output. The existing public obs_get_audio getter returns the same audio pointer, including NULL before audio initialization; audio_output_disconnect already handles absent registrations and invalid indices. Do not add validation, locking, callback guards or core-null fallback. There are no private static helpers requiring a new seam.

Port each characterization assertion 1:1 into the existing Core state category binary. Follow RED stub then GREEN, real C-header layout checks for any boundary types, unchanged Tier 2 characterization against both libraries, and a renamed-original-C oracle with differential argument/call/state checks and mutation evidence. Tier 4 does not apply. Register this unit's ported group and export fragment, preserve symbol parity, and leave existing C tests/public headers unchanged. Keep oracle/test constants portable on MSVC (no truncating constant casts).

Do not claim or implement this swap until #4715 has landed; this issue is the follow-up, not part of the extraction branch.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    on Nov 11, 2026
  2. zackees commented on Nov 11, 2026

    @zackees
    MemberAuthor

    Claiming: obs_remove_raw_audio_callback Rust swap in port/4716-raw-audio-remove (pool swap-4716, obs-studio2). 1. Stack from extraction branch test/4715-raw-audio-remove-extract at 1c78924 under the maintainer branch-only assignment. 2. Commit RED then GREEN with existing-category Tier 1 and original-C Tier 3, replay unchanged Tier 2 against both libraries, and check Windows linking. 3. Publish only the verified branch, no PR while backpressure is closed; hand off the exact own commit range in the pool response.

  3. added
    ready
    on Nov 11, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 13, 2026
  5. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    @zackees are you still on this one? It was claimed on 2026-11-11, and the extraction it stacks on is already on master (#4727). port/4716-raw-audio-remove has the RED and GREEN commits (95d9c55, ef17692) from 2026-11-11 but no PR. If you've moved on, I can rebase those two onto master, check them, and open the PR with your authorship kept; otherwise I'll leave it with you.

  6. rdoupe commented on Nov 17, 2026

    @rdoupe
    Collaborator

    Claiming: taking this over, since there's been no answer since 2026-11-16. I'll cherry-pick @zackees's RED and GREEN commits from port/4716-raw-audio-remove (95d9c55, ef17692) onto current master with his authorship kept, check RED on the stub and GREEN on the swap, run Tier 2 for test_raw_audio_remove* against hybrid and C reference, and open the PR. Branch: port/4716-raw-audio-remove-rebased.

  7. rdoupe commented on Nov 17, 2026

    @rdoupe
    Collaborator

    PR: #5003 (your two commits on current master, authorship kept; the oracle now compiles obs-get-audio.c.h renamed, since obs_get_audio is a Rust export now). RED 0/5 on the stub, GREEN 6/6, Tier 2 968/968 on both builds.

  8. moved this from Ready to In merge queue in obs-rust Multiviewon Nov 18, 2026
  9. moved this from In merge queue to Done in obs-rust Multiviewon Nov 18, 2026
  10. added a commit that references this issue on Nov 21, 2026
    ae34121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancementportreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions