pub trait DevAudioProcessor: Send + 'static {
// Required methods
fn process(&mut self, channels: &mut [&mut [f32]]);
fn apply_plain_values(&mut self, values: &[f32]);
fn set_sample_rate(&mut self, sample_rate: f32);
fn reset(&mut self);
}Expand description
Simplified audio processor trait for dev mode.
Unlike the full wavecraft_dsp::Processor trait, this has no associated
types and works with both direct Rust implementations and FFI-loaded
processors via type erasure.
Required Methods§
Sourcefn apply_plain_values(&mut self, values: &[f32])
fn apply_plain_values(&mut self, values: &[f32])
Apply plain parameter values in canonical generation order.
Sourcefn set_sample_rate(&mut self, sample_rate: f32)
fn set_sample_rate(&mut self, sample_rate: f32)
Update the processor’s sample rate.