pub struct StereoToMonoProcessor<SampleType> { /* private fields */ }
Expand description
An AudioProcessor
which will sum all input channels into input 0.
If there are no channels it’ll no-op. It’ll not mute the remaining channels.
Implementations§
Source§impl<SampleType> StereoToMonoProcessor<SampleType>
impl<SampleType> StereoToMonoProcessor<SampleType>
Trait Implementations§
Source§impl<SampleType> AudioProcessor for StereoToMonoProcessor<SampleType>
impl<SampleType> AudioProcessor for StereoToMonoProcessor<SampleType>
type SampleType = SampleType
Source§fn process(
&mut self,
_context: &mut AudioContext,
buffer: &mut AudioBuffer<SampleType>,
)
fn process( &mut self, _context: &mut AudioContext, buffer: &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> Freeze for StereoToMonoProcessor<SampleType>
impl<SampleType> RefUnwindSafe for StereoToMonoProcessor<SampleType>where
SampleType: RefUnwindSafe,
impl<SampleType> Send for StereoToMonoProcessor<SampleType>where
SampleType: Send,
impl<SampleType> Sync for StereoToMonoProcessor<SampleType>where
SampleType: Sync,
impl<SampleType> Unpin for StereoToMonoProcessor<SampleType>where
SampleType: Unpin,
impl<SampleType> UnwindSafe for StereoToMonoProcessor<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