AUDIO
Source snapshot · 11 November 2026

Standalone audio devices

Buffered graph-worker output

PreparedGraphOutput::new(graph, producer, config) prepares a fresh no-input f32 graph and planar/interleaved worker scratch. Config requires zero input/ auxiliary capacities, 0..1024 events in each direction, 1..65536 frames and matching 1..64 producer channels. Worker scratch is at most 32 MiB, separate from graph/native scratch. Move it to an explicitly owned worker and call start_audio there. The borrowed GraphOutputSession retains the graph's non-Send owner session, stopping nodes on that worker before prepared storage returns to main for retirement.

Each pump(transport) renders one fixed block only after the prior queue suffix has been published. Partial publication retains exact whole-frame order, without rerendering or advancing native history again. Progress separates rendered, published and pending frames. Caller transport applies only to a fresh render; no device clock is inferred. Graph faults publish none of the faulty block, but prior native histories may advance. Explicit reset resets graph histories while preserving queued/pending audio. Stop/join endpoint owners before queue clearing. No loop, sleep, spin, thread creation or I/O occurs inside pump.

RingOutput::new(consumer, rate) is a no-input f32 Processor for open_output or PreparedOutput. Preparation requires matching rate/channels and zero events/ auxiliary buses. Valid blocks consume a whole-frame prefix, zero every missing sample, and count source/underflow frames. Invalid blocks do not dequeue. Clone its monitor() on control before callback handoff for relaxed independent live counters; these are not coherent latency/clock measurements. RingOutput does no rate conversion, priming or waiting. Consumer scratch is at most 16 MiB.

This explicit queue bridge keeps graph/native lifecycle on a dedicated worker, rather than relying on device callback teardown to stop native nodes. The caller owns worker wake/sleep/priming, matching rates, device pause/drop, worker stop/join, graph retirement and retained native control reclaim. Queue underruns, buffering latency, worker deadlines, input/live edits/recovery remain separate work; bounded explicit event input is described below.

The public silent probe loads only the trusted RAVET Sine reference, sends no notes, and routes stereo silence into selected output channels. Its default run uses an offline device renderer; explicit native selection uses host-local IDs:

CARGO_BUILD_JOBS=2 cargo run --release -p ravet-device-probe --bin graph-output --locked -- \
  'target/clap/release/RAVET Sine.clap'
# Explicit short native silent run, with an ID from the existing --list command:
CARGO_BUILD_JOBS=2 cargo run --release -p ravet-device-probe --bin graph-output --locked -- \
  'target/clap/release/RAVET Sine.clap' '<device-id>' 96000 20 10

The tool primes 4096 queue frames, measures graph-pump heap actions, reports device and queue counters, then stops/joins the worker before main node/instance return. Offline tests do not establish device/platform/deadline support. See decision 0117.

On macOS arm64, the public loaded sine worker passed a 10-second silent UMC1820 run at 96 kHz/20 output channels: 1875 callbacks, 960000 source frames, zero queue underflows/processor faults/backend errors/panics, then owner stop/main return. This short observation does not establish clock alignment, long-session drift, physical faults or deadlines. See W110 in work status.