Skip to main content

FxProcessor

Trait FxProcessor 

Source
pub trait FxProcessor: Send {
    // Required methods
    fn process(&mut self, buf: &mut [f32]);
    fn name(&self) -> &str;

    // Provided methods
    fn set_intensity(&mut self, _intensity: f32) { ... }
    fn init(&mut self, _sample_rate: u32) { ... }
}
Expand description

Stub: FX processor trait.

Required Methods§

Source

fn process(&mut self, buf: &mut [f32])

Source

fn name(&self) -> &str

Provided Methods§

Source

fn set_intensity(&mut self, _intensity: f32)

Source

fn init(&mut self, _sample_rate: u32)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§