Trait AudioNodeProcessor

Source
pub trait AudioNodeProcessor<C>: 'static + Send {
    // Required method
    fn process(
        &mut self,
        frames: usize,
        proc_info: ProcInfo<'_, C>,
        inputs: &[&[f32]],
        outputs: &mut [&mut [f32]],
    );
}

Required Methods§

Source

fn process( &mut self, frames: usize, proc_info: ProcInfo<'_, C>, inputs: &[&[f32]], outputs: &mut [&mut [f32]], )

Process the given block of audio. Only process data in the buffers up to frames.

Note, all output buffers MUST be filled with data up to frames.

If any output buffers contain all zeros up to frames (silent), then mark that buffer as silent in ProcInfo::out_silence_mask.

Implementors§