Searched refs:playbackRate (Results 1 - 9 of 9) sorted by relevance

/frameworks/av/include/media/
H A DAudioResamplerPublic.h111 static inline bool isAudioPlaybackRateValid(const AudioPlaybackRate &playbackRate) { argument
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
[all...]
H A DAudioTrack.h452 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/services/audioflinger/
H A DBufferProviders.cpp325 audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) :
340 setPlaybackRate(playbackRate);
342 this, channelCount, format, sampleRate, playbackRate.mSpeed,
343 playbackRate.mPitch, playbackRate.mStretchMode, playbackRate.mFallbackMode);
459 status_t TimestretchBufferProvider::setPlaybackRate(const AudioPlaybackRate &playbackRate) argument
461 mPlaybackRate = playbackRate;
324 TimestretchBufferProvider(int32_t channelCount, audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) argument
H A DBufferProviders.h155 const AudioPlaybackRate &playbackRate);
165 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
H A DAudioMixer.cpp732 const AudioPlaybackRate *playbackRate = local
734 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate),
735 "bad parameters speed %f, pitch %f",playbackRate->mSpeed,
736 playbackRate->mPitch);
737 if (track.setPlaybackRate(*playbackRate)) {
740 playbackRate->mSpeed,
741 playbackRate->mPitch,
742 playbackRate->mStretchMode,
743 playbackRate->mFallbackMode);
794 bool AudioMixer::track_t::setPlaybackRate(const AudioPlaybackRate &playbackRate) argument
[all...]
H A DAudioMixer.h277 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
H A DThreads.cpp4215 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); local
4218 sampleRate, mNormalFrameCount, mSampleRate, playbackRate.mSpeed);
4387 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); local
4392 &playbackRate);
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp853 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) argument
856 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) {
867 mSampleRate, playbackRate.mSpeed, playbackRate.mPitch);
869 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch);
870 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch);
871 const float effectivePitch = adjustPitch(playbackRate.mPitch);
872 AudioPlaybackRate playbackRateTemp = playbackRate;
881 playbackRate
[all...]
/frameworks/av/include/private/media/
H A DAudioTrackShared.h382 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { argument
383 mPlaybackRateMutator.push(playbackRate);

Completed in 114 milliseconds