Skip to main content

AudioBlockOps

Trait AudioBlockOps 

Source
pub trait AudioBlockOps<S: Sample> {
    // Required method
    fn mix_to_mono(&self, dest: &mut AudioBlockMonoViewMut<'_, S>)
       where S: AddAssign + Div<Output = S> + From<u16>;
}

Required Methods§

Source

fn mix_to_mono(&self, dest: &mut AudioBlockMonoViewMut<'_, S>)
where S: AddAssign + Div<Output = S> + From<u16>,

Mix all channels to mono by averaging them. Panics if source and destination don’t have the same number of frames.

Implementors§

Source§

impl<S: Sample, B: AudioBlock<S>> AudioBlockOps<S> for B