Struct Process Block
pub struct ProcessBlock<'channels, 'samples, 'events, S: Sample = f32> {
pub audio: AudioBuffer<'channels, 'samples, S>,
pub auxiliary: Option<&'channels mut [AudioBuffer<'channels, 'samples, S>]>,
pub output_events: Option<OutputEvents<'events>>,
pub events: &'events [Event],
pub transport: Transport,
}Expand description
A callback’s borrowed storage and event slice; no allocation is required.
Fields§
§audio: AudioBuffer<'channels, 'samples, S>§auxiliary: Option<&'channels mut [AudioBuffer<'channels, 'samples, S>]>Additional buses in preparation order; absent means no auxiliary buses.
output_events: Option<OutputEvents<'events>>Initially empty, bounded event output for this callback.
events: &'events [Event]§transport: TransportImplementations§
§impl<'channels, 'samples, 'events, S: Sample> ProcessBlock<'channels, 'samples, 'events, S>
impl<'channels, 'samples, 'events, S: Sample> ProcessBlock<'channels, 'samples, 'events, S>
pub fn new( audio: AudioBuffer<'channels, 'samples, S>, events: &'events [Event], transport: Transport, ) -> Self
pub fn clear_outputs(&mut self)
pub fn clear_outputs(&mut self)
Clear all active outputs and discard emitted events on a rejected block. Input-only auxiliary buses and backing tails remain untouched.