Lines Matching refs:input_rate
194 atc_get_pitch(unsigned int input_rate, unsigned int output_rate)
200 pitch = (input_rate / output_rate) << 24;
201 input_rate %= output_rate;
202 input_rate /= 100;
204 for (b = 31; ((b >= 0) && !(input_rate >> b)); )
208 input_rate <<= (31 - b);
209 input_rate /= output_rate;
212 input_rate <<= b;
214 input_rate >>= -b;
216 pitch |= input_rate;