pub struct NoopAudioProcessor<SampleType>(/* private fields */);
Expand description
An audio-processor which doesn’t do any work.
Implementations§
Source§impl<SampleType> NoopAudioProcessor<SampleType>
impl<SampleType> NoopAudioProcessor<SampleType>
Trait Implementations§
Source§impl<SampleType: Send + Copy> AudioProcessor for NoopAudioProcessor<SampleType>
impl<SampleType: Send + Copy> AudioProcessor for NoopAudioProcessor<SampleType>
type SampleType = SampleType
Source§fn process(
&mut self,
_context: &mut AudioContext,
_frame: &mut AudioBuffer<Self::SampleType>,
)
fn process( &mut self, _context: &mut AudioContext, _frame: &mut AudioBuffer<Self::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> Freeze for NoopAudioProcessor<SampleType>
impl<SampleType> RefUnwindSafe for NoopAudioProcessor<SampleType>where
SampleType: RefUnwindSafe,
impl<SampleType> Send for NoopAudioProcessor<SampleType>where
SampleType: Send,
impl<SampleType> Sync for NoopAudioProcessor<SampleType>where
SampleType: Sync,
impl<SampleType> Unpin for NoopAudioProcessor<SampleType>where
SampleType: Unpin,
impl<SampleType> UnwindSafe for NoopAudioProcessor<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