Lines Matching defs:pitch
82 // FIXME: we don't use the pitch setting in the time stretcher (not working);
84 static const bool kFixPitch = true; // enable pitch fix
85 static inline uint32_t adjustSampleRate(uint32_t sampleRate, float pitch)
87 return kFixPitch ? (sampleRate * pitch + 0.5) : sampleRate;
90 static inline float adjustSpeed(float speed, float pitch)
92 return kFixPitch ? speed / max(pitch, AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) : speed;
95 static inline float adjustPitch(float pitch)
97 return kFixPitch ? AUDIO_TIMESTRETCH_PITCH_NORMAL : pitch;
855 // pitch is emulated by adjusting speed and sampleRate
907 // pitch is emulated by adjusting speed and sampleRate