Trait kira::mixer::effect::Effect [−][src]
pub trait Effect: Send + Debug { fn process(
&mut self,
dt: f64,
input: Frame,
parameters: &Parameters
) -> Frame; fn init(&mut self, sample_rate: u32) { ... } }
Expand description
Receives input audio from a mixer track and outputs modified audio.
Required methods
fn process(&mut self, dt: f64, input: Frame, parameters: &Parameters) -> Frame
[src]
fn process(&mut self, dt: f64, input: Frame, parameters: &Parameters) -> Frame
[src]Transforms an input frame.
dt
is the time that’s elapsed since the previous frame (in seconds)input
is the input audioparameters
is a set of all parameter IDs and their corresponding values. This is useful in conjunction withCachedValue
s, which can respond to parameter changes and update their value accordingly.