Audio and event contract¶
Audio is borrowed planar f32 or f64, specialized per processor, on one main bus and up to eight auxiliary buses. Separate-buffer views borrow immutable
inputs and mutable outputs; in-place views borrow mutable channels. Constructors
validate channel lengths, and accessors expose only active frames. Zero frames
are legal; unused backing tails remain untouched.
Input events are bounded by prepared capacity and ordered by nondecreasing frame offset. Same-frame events retain input order and take effect before that sample. Nonempty blocks require offsets below the frame count. Empty blocks allow only offset zero and apply events without advancing DSP time.
Processors validate the complete block before applying events or changing DSP state. A fault rejects the block, silences all active bus outputs and discards emitted events. Caller-owned output event storage has its own prepared capacity. These obligations are documented by Processor and decision 0001; types alone do not enforce an implementation's real-time behavior.