Lines Matching refs:newSamples
811 int newSamples; in skipPitchPeriod() local
814 newSamples = (int)(period/(speed - 1.0f)); in skipPitchPeriod()
816 newSamples = period; in skipPitchPeriod()
819 enlargeOutputBufferIfNeeded(newSamples); in skipPitchPeriod()
820 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples, samples, position, in skipPitchPeriod()
822 numOutputSamples += newSamples; in skipPitchPeriod()
823 return newSamples; in skipPitchPeriod()
833 int newSamples; in insertPitchPeriod() local
836 newSamples = (int)(period*speed/(1.0f - speed)); in insertPitchPeriod()
838 newSamples = period; in insertPitchPeriod()
841 enlargeOutputBufferIfNeeded(period + newSamples); in insertPitchPeriod()
843 overlapAdd(newSamples, numChannels, outputBuffer, numOutputSamples + period, samples, in insertPitchPeriod()
845 numOutputSamples += period + newSamples; in insertPitchPeriod()
846 return newSamples; in insertPitchPeriod()
855 int position = 0, period, newSamples; in changeSpeed() local
862 newSamples = copyInputToOutput(position); in changeSpeed()
863 position += newSamples; in changeSpeed()
867 newSamples = skipPitchPeriod(inputBuffer, position, speed, period); in changeSpeed()
868 position += period + newSamples; in changeSpeed()
870 newSamples = insertPitchPeriod(inputBuffer, position, speed, period); in changeSpeed()
871 position += newSamples; in changeSpeed()