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§
Sourcefn process_sample(&mut self, input: f32) -> f32
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".