Lines Matching refs:newSamples
962 long newSamples; in skipPitchPeriod() local
966 newSamples = period/(speed - 1.0f); in skipPitchPeriod()
968 newSamples = period; in skipPitchPeriod()
971 if(!enlargeOutputBufferIfNeeded(stream, newSamples)) { in skipPitchPeriod()
974 overlapAdd(newSamples, numChannels, stream->outputBuffer + in skipPitchPeriod()
976 stream->numOutputSamples += newSamples; in skipPitchPeriod()
977 return newSamples; in skipPitchPeriod()
987 long newSamples; in insertPitchPeriod() local
992 newSamples = period*speed/(1.0f - speed); in insertPitchPeriod()
994 newSamples = period; in insertPitchPeriod()
997 if(!enlargeOutputBufferIfNeeded(stream, period + newSamples)) { in insertPitchPeriod()
1003 overlapAdd(newSamples, numChannels, out, samples + period*numChannels, samples); in insertPitchPeriod()
1004 stream->numOutputSamples += period + newSamples; in insertPitchPeriod()
1005 return newSamples; in insertPitchPeriod()
1016 int position = 0, period, newSamples; in changeSpeed() local
1024 newSamples = copyInputToOutput(stream, position); in changeSpeed()
1025 position += newSamples; in changeSpeed()
1030 newSamples = skipPitchPeriod(stream, samples, speed, period); in changeSpeed()
1031 position += period + newSamples; in changeSpeed()
1033 newSamples = insertPitchPeriod(stream, samples, speed, period); in changeSpeed()
1034 position += newSamples; in changeSpeed()
1037 if(newSamples == 0) { in changeSpeed()