AUDIO
Source snapshot · 11 November 2026

Standalone audio devices

Caller-scheduled output recovery

RecoveringOutput owns an exact host-local output ID, fixed f32 configuration, scratch bound and a factory for fresh processors. Construction validates these bounds without opening a device or invoking the factory. The first enabled service enumerates the exact ID, prepares/opens/starts output and reports its opened generation. Healthy streams report Running. Missing devices pause/drop output and report Waiting; backend errors or permanently disabled panic DSP cause pause/drop before a fresh open. Ordinary block processor faults alone do not trigger reopening. Enumeration errors retain the existing stream; failed open/start leaves no stream for a later retry. There is no device/default fallback.

Applications call service on their control thread and choose poll cadence/retry backoff. No timer, hotplug subscription, settings change, state migration or clock compensation is created. The factory owns restored state and any repeated preparation policy. Statistics belong to the current stream and reset on each successful open; the diagnostic generation wraps at u64 exhaustion. Disabling immediately releases output; reenable opens fresh DSP on next service. request_reopen releases now and schedules another enabled open. Pause errors while releasing are best effort; stream destruction still follows. Backend work/destruction can block. Native hosted plug-ins need their own thread-correct lifecycle; this owner does not supply CLAP/VST3 scheduling.

CARGO_BUILD_JOBS=2 cargo run -p ravet-device-probe --locked -- \
  --validate-recovery-silence output-id

Controlled tests cover disappearance, unhealthy stream, failed-open retry, healthy preservation, enable/drop ordering and constructor validation without factory/device work. The silent native probe manually reopens and disables/ reenables three generations, asserting callback/fault counters and exact control-thread processor preparation/deactivation. UMC1820/macOS arm64 20-output 96 kHz evidence is recorded in work status. This proves those restart paths; physical unplug/replug, real backend-error recovery, other devices/platforms, duplex recovery and deadlines remain unvalidated. See decision 0090.