Skip to main content

NonlinearSampleProcessor

Trait NonlinearSampleProcessor 

Source
pub trait NonlinearSampleProcessor: Clone + Send {
    // Required methods
    fn reset(&mut self);
    fn process_sample(&mut self, input: f32) -> f32;
}
Expand description

A per-sample nonlinearity that can be wrapped by OversamplingWrapper.

Required Methods§

Source

fn reset(&mut self)

Clears any internal state.

Source

fn process_sample(&mut self, input: f32) -> f32

Maps one input sample to one output sample.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§