Skip to main content

process_chunked

Function process_chunked 

Source
pub fn process_chunked<S, P>(
    plugin: &mut P,
    params: &dyn Params,
    buffer: &mut AudioBuffer<'_, S>,
    args: ChunkedProcess<'_>,
) -> ProcessStatus
where S: Sample, P: PluginRuntime<Sample = S>,
Expand description

Walk the audio block in sub-block chunks, calling plugin.process() once per chunk with the events that land in [block_start, block_end) rebased to sub-block-relative offsets.

Returns the ProcessStatus returned by the last sub-block; for Tail(N) the plugin’s own clock is the authority, so propagating the last call’s value is the cheapest correct rule.

Allocation-free: the rebased event list lives in sub_event_scratch (capacity preserved across calls) and the audio buffer sub-views are zero-copy via AudioBuffer::slice.