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 + Sized> AudioProcessor for SilenceAudioProcessor<SampleType>
impl<SampleType: Float + Send + Sized> AudioProcessor for SilenceAudioProcessor<SampleType>
type SampleType = SampleType
source§fn process(
&mut self,
_context: &mut AudioContext,
output: &mut AudioBuffer<SampleType>
)
fn process( &mut self, _context: &mut AudioContext, output: &mut AudioBuffer<SampleType> )
Process a block of samples by mutating the input
AudioBuffer
source§fn prepare(&mut self, _context: &mut AudioContext)
fn prepare(&mut self, _context: &mut AudioContext)
Prepare for playback based on current audio settings