pub struct SilenceAudioProcessor<SampleType>(_);
Expand description
An audio-processor which mutes all channels.
Implementations
sourceimpl<SampleType> SilenceAudioProcessor<SampleType>
impl<SampleType> SilenceAudioProcessor<SampleType>
Trait Implementations
sourceimpl<SampleType: Float + Send> AudioProcessor for SilenceAudioProcessor<SampleType>
impl<SampleType: Float + Send> AudioProcessor for SilenceAudioProcessor<SampleType>
type SampleType = SampleType
sourcefn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
output: &mut BufferType
)
fn process<BufferType: AudioBuffer<SampleType = Self::SampleType>>(
&mut self,
output: &mut BufferType
)
Process a block of samples by mutating the input AudioBuffer
sourcefn prepare(&mut self, _settings: AudioProcessorSettings)
fn prepare(&mut self, _settings: AudioProcessorSettings)
Prepare for playback based on current audio settings
Auto Trait Implementations
impl<SampleType> RefUnwindSafe for SilenceAudioProcessor<SampleType> where
SampleType: RefUnwindSafe,
impl<SampleType> Send for SilenceAudioProcessor<SampleType> where
SampleType: Send,
impl<SampleType> Sync for SilenceAudioProcessor<SampleType> where
SampleType: Sync,
impl<SampleType> Unpin for SilenceAudioProcessor<SampleType> where
SampleType: Unpin,
impl<SampleType> UnwindSafe for SilenceAudioProcessor<SampleType> where
SampleType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more