pub trait Dsp<S> {
// Required methods
fn gain(&mut self, input: &[S], level: u8, output: &mut [S]);
fn mix(&mut self, left: &[S], right: &[S], output: &mut [S]);
}Expand description
A target can implement these operations with its own DSP kernels. Each slice has the same frame count and the output is distinct from the inputs. Calls must finish within the audio deadline and fully overwrite the output.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".