Home | History | Annotate | Download | only in sonic

Lines Matching refs:speed

26     float speed;
87 /* Get the speed of the stream. */
91 return stream->speed;
94 /* Set the speed of the stream. */
97 float speed)
99 stream->speed = speed;
124 /* Set the playback rate of the stream. This scales pitch and speed at the same time. */
264 stream->speed = 1.0f;
551 float speed = stream->speed/stream->pitch;
554 (int)((remainingSamples/speed + stream->numPitchSamples)/rate + 0.5f);
680 speed, we down sample by an integer factor get in the 11KHz range, and then
955 /* Skip over a pitch period, and copy period/speed samples to the output */
959 float speed,
965 if(speed >= 2.0f) {
966 newSamples = period/(speed - 1.0f);
969 stream->remainingInputToCopy = period*(2.0f - speed)/(speed - 1.0f);
984 float speed,
991 if(speed < 0.5f) {
992 newSamples = period*speed/(1.0f - speed);
995 stream->remainingInputToCopy = period*(2.0f*speed - 1.0f)/(1.0f - speed);
1012 float speed)
1029 if(speed > 1.0) {
1030 newSamples = skipPitchPeriod(stream, samples, speed, period);
1033 newSamples = insertPitchPeriod(stream, samples, speed, period);
1051 float speed = stream->speed/stream->pitch;
1057 if(speed > 1.00001 || speed < 0.99999) {
1058 changeSpeed(stream, speed);
1123 /* This is a non-stream oriented interface to just change the speed of a sound sample */
1127 float speed,
1137 sonicSetSpeed(stream, speed);
1150 /* This is a non-stream oriented interface to just change the speed of a sound sample */
1154 float speed,
1164 sonicSetSpeed(stream, speed);