Skip to content

test: Characterize null audio-monitoring backend before Rust swap #5262

Closed

Description

@zackees

The isolated null audio-monitoring backend in libobs/audio-monitoring/null/null-audio-monitoring.c.h (group libobs/build/libobs.null-audio+.h.c) has no focused C characterization. Add it before replacing this file with Rust; no extraction is needed.

Characterize all six functions: false availability; enumeration never invokes its callback (including NULL callback/data); create returns NULL for NULL and non-NULL sources; reset/destroy ignore NULL and non-NULL handles; devices_match always returns false for NULL, equal, different and arbitrary byte strings. Check input/output storage, ownership, allocations and logs remain unchanged.

Exercise the real selected fallback library against C-reference and hybrid builds with ENABLE_PULSEAUDIO=OFF. Register only for Linux/FreeBSD without PulseAudio; Windows/macOS retain their native backends. Add the tests.d pointer, sorted canonical test graph and matching inventories. Do not edit existing C tests, public headers or Rust implementation.

Acceptance: committed RED expectation then GREEN; whole native_build:: module; focused Linux Tier 2 new test plus every *_rust target; Windows link check (separate Darwin link check if Windows fails); full lint once. Follow with a separately tracked Rust swap that preserves platform-selected symbol ownership.

Activity

  1. added
    portPort a C unit to Rust (four-tier policy)
    readyMeets the definition of Ready; claimable
    P2Normal priority
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: null audio-monitoring C characterization in pool slot obs-studio5, branch test/5262-null-audio-monitor. 1. Add additive characterization for all six no-op functions and exact null-backend registration. 2. Commit and demonstrate RED then GREEN against selected C-reference/hybrid fallback libraries. 3. Run native_build, all Linux *_rust links, cross-link checks and lint; publish according to backpressure and file the separate Rust swap follow-up. First verified branch/PR expected this session.

  3. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Landed on master in #5268 (68a23db): the null audio-monitoring backend is characterized. The Rust swap is #5269.

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

Metadata

Metadata

Assignees

Labels

P2Normal priorityportPort a C unit to Rust (four-tier policy)readyMeets the definition of Ready; claimablesize:SHours

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions