Skip to main content

InputSource

Trait InputSource 

Source
pub trait InputSource: Send {
    // Required method
    fn fill(&mut self, inputs: &mut [Vec<f32>], frames: usize, sample_rate: f64);
}
Expand description

A source that fills a plugin’s input buffers each block — a generated test signal or a preloaded audio file — so effects can be auditioned/rendered with a known input.

Required Methods§

Source

fn fill(&mut self, inputs: &mut [Vec<f32>], frames: usize, sample_rate: f64)

Fill inputs[ch][..frames] with the next block of audio at sample_rate.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§