Lines Matching refs:speed
26 float speed; member
91 return stream->speed; in sonicGetSpeed()
97 float speed) in sonicSetSpeed() argument
99 stream->speed = speed; in sonicSetSpeed()
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()
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()
1127 float speed, in sonicChangeFloatSpeed() argument
1137 sonicSetSpeed(stream, speed); in sonicChangeFloatSpeed()
1154 float speed, in sonicChangeShortSpeed() argument
1164 sonicSetSpeed(stream, speed); in sonicChangeShortSpeed()