pub fn sink<
        'a,
        R: 'a + RangeBounds<usize> + SliceIndex<[F], Output = [F]>,
    >(
        &'a mut self,
        reg: R,
    ) -> impl Sink<F> + '_ {
        AudioSink {
            s_rate: self.sample_rate(),
            frames: &mut self.as_slice()[reg],
            resampler: Resampler::default(),
        }
    }
/// Create an audio sink to overwrite a region of this `Audio` buffer.
///
/// # Panics
/// If range is out of bounds
Create an audio sink to overwrite a region of this `Audio` buffer.
Create an audio sink to overwrite a region of this ` Audio ` buffer .
pub fn sink<
        'a,
        R: 'a + RangeBounds<usize> + SliceIndex<[F], Output = [F]>,
    >(
        &'a mut self,
        reg: R,
    ) -> impl Sink<F> + '_ {
        AudioSink {
            s_rate: self.sample_rate(),
            frames: &mut self.as_slice()[reg],
            resampler: Resampler::default(),
        }
    }
pub fn sink < ' a , R : ' a + RangeBounds < usize > + SliceIndex < [ F ] , Output = [ F ] > , > ( & ' a mut self , reg : R , ) -> impl Sink < F > + ' _ { AudioSink { s_rate : self . sample_rate ( ) , frames : & mut self . as_slice ( ) [ reg ] , resampler : Resampler :: default ( ) , } }
Create an audio sink to overwrite a region of this `Audio` buffer.
Create an audio sink to overwrite a region of this ` Audio ` buffer .
&'a mut self
reg
R
&'a mut self
reg
R
panics
If range is out of bounds
If range is out of bounds