Lines Matching refs:speed
22 private float speed; field in Sonic
99 return speed; in getSpeed()
104 float speed) in setSpeed() argument
106 this.speed = speed; in setSpeed()
204 speed = 1.0f; in Sonic()
460 float s = speed/pitch; in flushStream()
808 float speed, in skipPitchPeriod() argument
813 if(speed >= 2.0f) { in skipPitchPeriod()
814 newSamples = (int)(period/(speed - 1.0f)); in skipPitchPeriod()
817 remainingInputToCopy = (int)(period*(2.0f - speed)/(speed - 1.0f)); in skipPitchPeriod()
830 float speed, in insertPitchPeriod() argument
835 if(speed < 0.5f) { in insertPitchPeriod()
836 newSamples = (int)(period*speed/(1.0f - speed)); in insertPitchPeriod()
839 remainingInputToCopy = (int)(period*(2.0f*speed - 1.0f)/(1.0f - speed)); in insertPitchPeriod()
852 float speed) in changeSpeed() argument
866 if(speed > 1.0) { in changeSpeed()
867 newSamples = skipPitchPeriod(inputBuffer, position, speed, period); in changeSpeed()
870 newSamples = insertPitchPeriod(inputBuffer, position, speed, period); in changeSpeed()
882 float s = speed/pitch; in processStreamInput()
949 float speed, in changeFloatSpeed() argument
959 stream.setSpeed(speed); in changeFloatSpeed()
975 float speed, in sonicChangeShortSpeed() argument
985 stream.setSpeed(speed); in sonicChangeShortSpeed()