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
obs-core: swap obs_set_audio_monitoring_device and obs_reset_audio_monitoring to Rust #5491
Phase 6 follow-up (#444) to the C-only characterization and extraction of obs_set_audio_monitoring_device and obs_reset_audio_monitoring (#5489, PR #5490). Stacked on that PR: start once it merges.
Port libobs/obs-audio-monitoring-device.c.h into obs-core, keeping the public C API and ABI unchanged.
obs_set_audio_monitoring_device(name, id), in order:
returns false for a NULL or empty name or id (checked name, id, then their first bytes, through obs_core_setup_rules_monitor_missing), before anything else;
returns false when monitoring is unavailable;
under monitoring_mutex, returns true with nothing changed when id equals the stored id (obs_core_setup_rules_monitor_same);
otherwise replaces the stored name and id with copies, unlocks, resets every live monitor (obs_reset_audio_monitoring), then tells each Audio Output Capture source (OBS_SOURCE_DO_NOT_SELF_MONITOR) about the change with its own device_id setting, and returns true.
obs_reset_audio_monitoring() does nothing when monitoring is unavailable, otherwise resets each live monitor once under monitoring_mutex.
The steps on private state (the obs->audio monitoring fields and mutex, the monitor list, audio_monitor_reset, the source enumeration and obs_source_audio_output_capture_device_changed) stay C behind one hidden adapter file in the core group; the decisions and their order move to Rust.
Mirror the test_set_audio_monitoring_device assertions in Tier 1 (the existing obs-tests-core binary, no new executable), keep Tier 2 (test_set_audio_monitoring_device, test_monitoring_device, test_pulse_monitor_reset, test_core_setup_rules_steps) against hybrid libobs and libobs-c-reference, and add Tier 3 oracle parity: the original and the shim against recording stand-ins for the adapter steps, comparing the result, the step sequence (lock, compare, copies, unlock, resets, per-source notices) and the stored strings over proptest names, ids and source sets, with mutants. Tier 4 does not apply. Move the extracted file into its own ported group. Preserve existing C tests and public headers.
Claiming: the Rust swap of obs_set_audio_monitoring_device and obs_reset_audio_monitoring, stacked on the extraction in #5490. I'll start the RED Tier 1 mirrors once #5490 merges.
Activity
rdoupe commentedon Nov 23, 2026
Claiming: the Rust swap of obs_set_audio_monitoring_device and obs_reset_audio_monitoring, stacked on the extraction in #5490. I'll start the RED Tier 1 mirrors once #5490 merges.
rdoupe commentedon Nov 23, 2026
Continuing: the extraction (#5490) merged, so the swap is under way on
port/audio-monitoring-device. RED Tier 1 mirrors first, PR to follow.obs-core: swap obs_set_audio_monitoring_device and obs_reset_audio_mo…