AUDIO
Source snapshot · 11 November 2026

Standalone audio devices

Complete graph-worker event batches

graph_event_queue(GraphEventQueueConfig { block_frames, event_capacity, queued_batches }) prepares a unique producer/consumer pair for either control input or worker-generated output. Limits are 1..65536 fixed frames, 0..4096 events and 1..64 queued batches. Each batch occupies capacity+1 fixed slots, including unused payload: publication commits the entire header/context/tag and event stream atomically. Queue values use at most 32 MiB, plus one retained consumer buffer. Create/clone any surrounding control objects outside callback processing; endpoint/buffer drop belongs after producer/consumer owners stop.

try_publish(tag, transport, events) validates count, ordered in-block offsets, finite parameter values and normalized notes before publication. MIDI/UMP remain validated exact payloads. Full/invalid input publishes no prefix; disconnected consumer rejects when observed. Tags and transport are opaque caller context, without automatic uniqueness, clock conversion or native transport validation.

next_batch() dequeues a complete batch into prepared retained storage and lends its immutable values. Dropping the borrow retains it; acknowledge() explicitly releases the pending batch after consumption or deliberate discard. No newer batch replaces it. A consumer may retain one batch in addition to the configured queued budget. Producer teardown leaves pending/queued batches available to drain. Use input acknowledgement from pump_io to retain staged input during partial publication; graph faults require explicit consumer policy. Output queue fullness also requires retained-data, discard or pacing policy; never rerender to replay native-generated events. Publish/read/ack have no allocation, locks, wait or I/O.

The native graph-telemetry probe now uses separate complete-batch queues for main input and worker output, checks 1000 tags/parameter streams, once-only mapped read-only output, retained audio suffixes and owner/main retirement. It opens no GUI/device and does not convert worker tags into audible/device timing. Consumer wake/sleep, input staging and GUI/recovery policy remain explicit. See decision 0120.