/// Set all samples of an AudioBuffer to Zero::zero
Set all samples of an AudioBuffer to Zero::zero
Set all samples of an AudioBuffer to Zero :: zero
pub fn clear<Buffer, SampleType>(buf: &mut Buffer)
where
    Buffer: AudioBuffer<SampleType = SampleType>,
    SampleType: num::Zero,
{
    for sample in buf.slice_mut() {
        *sample = SampleType::zero();
    }
}
pub fn clear < Buffer , SampleType > ( buf : & mut Buffer ) where Buffer : AudioBuffer < SampleType = SampleType > , SampleType : num :: Zero , { for sample in buf . slice_mut ( ) { * sample = SampleType :: zero ( ) ; } }
Set all samples of an AudioBuffer to Zero::zero
Set all samples of an AudioBuffer to Zero :: zero
buf
&mut Buffer