pub struct SilenceAudioProcessor<SampleType>(_);
Expand description
An audio-processor which mutes all channels.
Implementations§
source§impl<SampleType> SilenceAudioProcessor<SampleType>
impl<SampleType> SilenceAudioProcessor<SampleType>
Trait Implementations§
source§impl<SampleType: Float + Send> AudioProcessor for SilenceAudioProcessor<SampleType>
impl<SampleType: Float + Send> AudioProcessor for SilenceAudioProcessor<SampleType>
type SampleType = SampleType
source§fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
_context: &mut AudioContext,
output: &mut BufferType
)
fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>( &mut self, _context: &mut AudioContext, output: &mut BufferType )
Process a block of samples by mutating the input
AudioBuffer
source§fn prepare(
&mut self,
_context: &mut AudioContext,
_settings: AudioProcessorSettings
)
fn prepare( &mut self, _context: &mut AudioContext, _settings: AudioProcessorSettings )
Prepare for playback based on current audio settings