pub struct ChannelMixer;Expand description
Channel mixer for converting multi-channel audio to mono.
Implementations§
Source§impl ChannelMixer
impl ChannelMixer
Sourcepub fn mix_to_mono(samples: &[f32], channels: u8) -> Result<MixedAudio>
pub fn mix_to_mono(samples: &[f32], channels: u8) -> Result<MixedAudio>
Mix multi-channel audio into a mono buffer via averaging.
Trait Implementations§
Source§impl Clone for ChannelMixer
impl Clone for ChannelMixer
Source§fn clone(&self) -> ChannelMixer
fn clone(&self) -> ChannelMixer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelMixer
impl Debug for ChannelMixer
Source§impl Default for ChannelMixer
impl Default for ChannelMixer
Source§fn default() -> ChannelMixer
fn default() -> ChannelMixer
Returns the “default value” for a type. Read more
impl Copy for ChannelMixer
Auto Trait Implementations§
impl Freeze for ChannelMixer
impl RefUnwindSafe for ChannelMixer
impl Send for ChannelMixer
impl Sync for ChannelMixer
impl Unpin for ChannelMixer
impl UnsafeUnpin for ChannelMixer
impl UnwindSafe for ChannelMixer
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