fn pad(&mut self) -> Option<f32> {
        let sample = if self.counter < self.from {
            self.source.next().or_else(|| (self.counter != 0).then_some(0.))
        } else {
            Some(0.)
        };

        self.counter = (self.counter + 1) % self.to;
        sample
    }
// Pad additional output channels with silence (e.g. from=2, to=3).
Pad additional output channels with silence .
Pad additional output channels with silence .
fn pad(&mut self) -> Option<f32> {
        let sample = if self.counter < self.from {
            self.source.next().or_else(|| (self.counter != 0).then_some(0.))
        } else {
            Some(0.)
        };
        self.counter = (self.counter + 1) % self.to;
        sample
    }
fn pad ( & mut self ) -> Option < f32 > { let sample = if self . counter < self . from { self . source . next ( ) . or_else ( | | ( self . counter != 0 ) . then_some ( 0. ) ) } else { Some ( 0. ) } ; self . counter = ( self . counter + 1 ) % self . to ; sample }
Pad additional output channels with silence (e.g.
Pad additional output channels with silence ( e . g .
&mut self
&mut self