Skip to main content

Module buffer

Module buffer 

Source
Expand description

Planar audio buffer passed into crate::Plugin::process.

AudioBuffer<S> is the host-side view of the slices the plugin reads from and writes into. Channels are organised by bus to match how host SDKs natively expose audio — no interleave / deinterleave on the hot path.

The lifetime 'a is the block lifetime: every slice borrows from buffers the host owns. Plugins receive &mut AudioBuffer and may write through the output slices but cannot extend the borrows past the process call.

Structs§

AudioBuffer
Mutable, planar audio buffer for one process block.
BusRange
Per-bus channel range into the buffer’s flat channel arrays.

Type Aliases§

InputChannel
One channel of input audio.
OutputChannel
One channel of output audio.