pub struct SilenceAudioProcessor<SampleType>(/* private fields */);
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
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more