Lines Matching full:speed
26 float speed; member
87 /* Get the speed of the stream. */
91 return stream->speed; in sonicGetSpeed()
94 /* Set the speed of the stream. */
97 float speed) in sonicSetSpeed() argument
99 stream->speed = speed; in sonicSetSpeed()
124 /* Set the playback rate of the stream. This scales pitch and speed at the same time. */
264 stream->speed = 1.0f; in sonicCreateStream()
551 float speed = stream->speed/stream->pitch; in sonicFlushStream() local
554 (int)((remainingSamples/speed + stream->numPitchSamples)/rate + 0.5f); in sonicFlushStream()
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, in skipPitchPeriod() argument
965 if(speed >= 2.0f) { in skipPitchPeriod()
966 newSamples = period/(speed - 1.0f); in skipPitchPeriod()
969 stream->remainingInputToCopy = period*(2.0f - speed)/(speed - 1.0f); in skipPitchPeriod()
984 float speed, in insertPitchPeriod() argument
991 if(speed < 0.5f) { in insertPitchPeriod()
992 newSamples = period*speed/(1.0f - speed); in insertPitchPeriod()
995 stream->remainingInputToCopy = period*(2.0f*speed - 1.0f)/(1.0f - speed); in insertPitchPeriod()
1012 float speed) in changeSpeed() argument
1029 if(speed > 1.0) { in changeSpeed()
1030 newSamples = skipPitchPeriod(stream, samples, speed, period); in changeSpeed()
1033 newSamples = insertPitchPeriod(stream, samples, speed, period); in changeSpeed()
1051 float speed = stream->speed/stream->pitch; in processStreamInput() local
1057 if(speed > 1.00001 || speed < 0.99999) { in processStreamInput()
1058 changeSpeed(stream, speed); in processStreamInput()
1123 /* This is a non-stream oriented interface to just change the speed of a sound sample */
1127 float speed, in sonicChangeFloatSpeed() argument
1137 sonicSetSpeed(stream, speed); in sonicChangeFloatSpeed()
1150 /* This is a non-stream oriented interface to just change the speed of a sound sample */
1154 float speed, in sonicChangeShortSpeed() argument
1164 sonicSetSpeed(stream, speed); in sonicChangeShortSpeed()