Skip to main content

Effect

Trait Effect 

Source
pub trait Effect<T: Transcendental>: ParameterizedAlgorithm<T> {
    // Provided methods
    fn num_inputs(&self) -> usize { ... }
    fn num_outputs(&self) -> usize { ... }
    fn process_stereo(&mut self, left: T, right: T) -> (T, T) { ... }
    fn process_block_vector(&mut self, input: &[T], output: &mut [T]) { ... }
}
Expand description

Base trait for effects

Provided Methods§

Source

fn num_inputs(&self) -> usize

Get number of input channels

Source

fn num_outputs(&self) -> usize

Get number of output channels

Source

fn process_stereo(&mut self, left: T, right: T) -> (T, T)

Process stereo pair (if supported)

Source

fn process_block_vector(&mut self, input: &[T], output: &mut [T])

Process block using vector eDSL (optional)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§