Trait audio_processor_traits::AudioProcessor [−][src]
pub trait AudioProcessor {
type SampleType;
fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
data: &mut BufferType
);
fn prepare(&mut self, _settings: AudioProcessorSettings) { ... }
}Expand description
Represents an audio processing node.
Implementors should define the SampleType the node will work over. See some examples here.
Associated Types
type SampleTypeRequired methods
fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
data: &mut BufferType
)
fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
data: &mut BufferType
)Process a block of samples by mutating the input AudioBuffer
Provided methods
fn prepare(&mut self, _settings: AudioProcessorSettings)
fn prepare(&mut self, _settings: AudioProcessorSettings)Prepare for playback based on current audio settings