Home
last modified time | relevance | path

Searched refs:effectiveRate (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libmedia/
DAudioTrack.cpp869 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate() local
877 effectiveRate, effectiveSpeed, effectivePitch); in setPlaybackRate()
885 if (!isSampleRateSpeedAllowed_l(effectiveRate, effectiveSpeed)) { in setPlaybackRate()
892 … if ((uint64_t)effectiveRate > (uint64_t)mSampleRate * (uint64_t)AUDIO_RESAMPLER_DOWN_RATIO_MAX) { in setPlaybackRate()
898 if ((uint64_t)effectiveRate * (uint64_t)AUDIO_RESAMPLER_UP_RATIO_MAX < (uint64_t)mSampleRate) { in setPlaybackRate()
906 mProxy->setSampleRate(effectiveRate); // FIXME: not quite "atomic" with setPlaybackRate in setPlaybackRate()