pub trait SliceAudioProcessor {
// Required method
fn process_slice(
&mut self,
_context: &mut AudioContext,
num_channels: usize,
data: &mut [f32]
);
// Provided method
fn prepare_slice(
&mut self,
_context: &mut AudioContext,
_settings: AudioProcessorSettings
) { ... }
}
Expand description
Auto-implemented object version of the audio-processor trait.
Given a known buffer-type, audio-processors can be made into objects using this type.