Lines Matching defs:phases
356 // for 16b, it is desirable to have 2^(16/2) = 256 phases.
361 int phases = mSampleRate / gcd(mSampleRate, inSampleRate);
366 // as above, #phases less than 63 is too few phases for accurate linear interpolation.
367 // we increase the phases to compensate, but more phases means more memory per
373 while (phases<63) {
374 phases *= 2; // this code only needed to support dynamic rate changes
377 if (phases>=256) { // too many phases, always interpolate
378 phases = 127;
382 mConstants.set(phases, halfLength, inSampleRate, mSampleRate);