Lines Matching refs:playbackRate
111 static inline bool isAudioPlaybackRateValid(const AudioPlaybackRate &playbackRate) {
112 if (playbackRate.mFallbackMode == AUDIO_TIMESTRETCH_FALLBACK_FAIL &&
113 (playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_SPEECH ||
114 playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_DEFAULT)) {
116 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN &&
117 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX &&
118 playbackRate.mPitch >= AUDIO_TIMESTRETCH_PITCH_MIN &&
119 playbackRate.mPitch <= AUDIO_TIMESTRETCH_PITCH_MAX;
121 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN &&
122 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX &&
123 playbackRate.mPitch >= AUDIO_TIMESTRETCH_PITCH_MIN &&
124 playbackRate.mPitch <= AUDIO_TIMESTRETCH_PITCH_MAX;