pub fn copy_planar_typed<F>(&mut self, src: &AudioBuffer<F>)
    where
        F: Sample + IntoSample<S>,
    {
        let n_frames = src.n_frames;
        let n_channels = src.spec.channels.count();
        let n_samples = n_frames * n_channels;

        // Ensure that the capacity of the sample buffer is greater than or equal to the number
        // of samples that will be copied from the source buffer.
        assert!(self.capacity() >= n_samples);

        let mut writer = SampleWriter::from_buf(n_samples, self);

        for ch in 0..n_channels {
            let begin = ch * src.n_capacity;
            for sample in &src.buf[begin..(begin + n_frames)] {
                S::write((*sample).into_sample(), &mut writer);
            }
        }
    }
/// Copies all audio data from a source `AudioBuffer` that is of a different sample format type
/// than that of the `RawSampleBuffer` in planar channel order. The two buffers must be equivalent.
Copies all audio data from a source `AudioBuffer` that is of a different sample format type
than that of the `RawSampleBuffer` in planar channel order. The two buffers must be equivalent.
Copies all audio data from a source ` AudioBuffer ` that is of a different sample format type than that of the ` RawSampleBuffer ` in planar channel order . The two buffers must be equivalent .
pub fn copy_planar_typed<F>(&mut self, src: &AudioBuffer<F>)
    where
        F: Sample + IntoSample<S>,
    {
        let n_frames = src.n_frames;
        let n_channels = src.spec.channels.count();
        let n_samples = n_frames * n_channels;
        // Ensure that the capacity of the sample buffer is greater than or equal to the number
        // of samples that will be copied from the source buffer.
        assert!(self.capacity() >= n_samples);
        let mut writer = SampleWriter::from_buf(n_samples, self);
        for ch in 0..n_channels {
            let begin = ch * src.n_capacity;
            for sample in &src.buf[begin..(begin + n_frames)] {
                S::write((*sample).into_sample(), &mut writer);
            }
        }
    }
pub fn copy_planar_typed < F > ( & mut self , src : & AudioBuffer < F > ) where F : Sample + IntoSample < S > , { let n_frames = src . n_frames ; let n_channels = src . spec . channels . count ( ) ; let n_samples = n_frames * n_channels ; // Ensure that the capacity of the sample buffer is greater than or equal to the number // of samples that will be copied from the source buffer. assert ! ( self capacity ( ) n_samples ) ; let mut writer = SampleWriter :: from_buf ( n_samples , self ) ; for ch in 0 .. n_channels { let begin = ch * src . n_capacity ; for sample in & src . buf [ begin .. ( begin + n_frames ) ] { S :: write ( ( * sample ) . into_sample ( ) , & mut writer ) ; } } }
Copies all audio data from a source `AudioBuffer` that is of a different sample format type
than that of the `RawSampleBuffer` in planar channel order.
Copies all audio data from a source ` AudioBuffer ` that is of a different sample format type than that of the ` RawSampleBuffer ` in planar channel order .
&mut self
src
&AudioBuffer<F>
&mut self
src
&AudioBuffer<F>