pub trait Processor {
// Required method
fn set_processing(&mut self, processing: bool);
}
Expand description
A base trait for audio processors.
Most audio processors should additionally implement effect::Effect
or synth::Synth
.
Required Methods§
Sourcefn set_processing(&mut self, processing: bool)
fn set_processing(&mut self, processing: bool)
Enable or disable processing. Must not allocate or block.
processing starts off.
Note that after toggling this on -> off -> on, we must generate the exact same output as the first time we were turned on - i.e., this acts as a reset.
Note that process
will only ever be called after set_processing(true)