sonic_lite.c
static int skipPitchPeriod(short *samples, float speed, int period) {
  long newSamples;

  if (speed >= 2.0f) {
    newSamples = period / (speed - 1.0f);
  } else {
    newSamples = period;
    sonicStream.remainingInputToCopy = period * (2.0f - speed) / (speed - 1.0f);
  }
  overlapAdd(newSamples, sonicStream.outputBuffer + sonicStream.numOutputSamples,
      samples, samples + period);
  sonicStream.numOutputSamples += newSamples;
  return newSamples;
}
/* Skip over a pitch period, and copy period/speed samples to the output */
Skip over a pitch period, and copy period/speed samples to the output
Skip over a pitch period and copy period / speed samples to the output
static int skipPitchPeriod(short *samples, float speed, int period) {
  long newSamples;
  if (speed >= 2.0f) {
    newSamples = period / (speed - 1.0f);
  } else {
    newSamples = period;
    sonicStream.remainingInputToCopy = period * (2.0f - speed) / (speed - 1.0f);
  }
  overlapAdd(newSamples, sonicStream.outputBuffer + sonicStream.numOutputSamples,
      samples, samples + period);
  sonicStream.numOutputSamples += newSamples;
  return newSamples;
}
static int skipPitchPeriod ( short * samples , float speed , int period ) { long newSamples ; if ( speed >= 2.0f ) { newSamples = period / ( speed - 1.0f ) ; } else { newSamples = period ; sonicStream . remainingInputToCopy = period * ( 2.0f - speed ) / ( speed - 1.0f ) ; } overlapAdd ( newSamples , sonicStream . outputBuffer + sonicStream . numOutputSamples , samples , samples + period ) ; sonicStream . numOutputSamples += newSamples ; return newSamples ; }
Skip over a pitch period, and copy period/speed samples to the output
Skip over a pitch period and copy period / speed samples to the output