Home | History | Annotate | Download | only in sonic

Lines Matching refs:speed

15 	/* This is used to down-sample some inputs to improve speed */
22 private float speed;
96 // Get the speed of the stream.
99 return speed;
102 // Set the speed of the stream.
104 float speed)
106 this.speed = speed;
128 // Set the playback rate of the stream. This scales pitch and speed at the same time.
204 speed = 1.0f;
460 float s = speed/pitch;
579 // speed, we down sample by an integer factor get in the 11KHz range, and then
804 // Skip over a pitch period, and copy period/speed samples to the output
808 float speed,
813 if(speed >= 2.0f) {
814 newSamples = (int)(period/(speed - 1.0f));
817 remainingInputToCopy = (int)(period*(2.0f - speed)/(speed - 1.0f));
830 float speed,
835 if(speed < 0.5f) {
836 newSamples = (int)(period*speed/(1.0f - speed));
839 remainingInputToCopy = (int)(period*(2.0f*speed - 1.0f)/(1.0f - speed));
852 float speed)
866 if(speed > 1.0) {
867 newSamples = skipPitchPeriod(inputBuffer, position, speed, period);
870 newSamples = insertPitchPeriod(inputBuffer, position, speed, period);
882 float s = speed/pitch;
945 // This is a non-stream oriented interface to just change the speed of a sound sample
949 float speed,
959 stream.setSpeed(speed);
971 /* This is a non-stream oriented interface to just change the speed of a sound sample */
975 float speed,
985 stream.setSpeed(speed);