Home
last modified time | relevance | path

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

/frameworks/av/include/media/
DAudioResamplerPublic.h111 static inline bool isAudioPlaybackRateValid(const AudioPlaybackRate &playbackRate) { in isAudioPlaybackRateValid() argument
112 if (playbackRate.mFallbackMode == AUDIO_TIMESTRETCH_FALLBACK_FAIL && in isAudioPlaybackRateValid()
113 (playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_SPEECH || in isAudioPlaybackRateValid()
114 playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_DEFAULT)) { in isAudioPlaybackRateValid()
116 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid()
117 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid()
118 playbackRate.mPitch >= AUDIO_TIMESTRETCH_PITCH_MIN && in isAudioPlaybackRateValid()
119 playbackRate.mPitch <= AUDIO_TIMESTRETCH_PITCH_MAX; in isAudioPlaybackRateValid()
121 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid()
122 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid()
[all …]
DAudioTrack.h452 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/services/audioflinger/
DBufferProviders.cpp325 audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) : in TimestretchBufferProvider() argument
340 setPlaybackRate(playbackRate); in TimestretchBufferProvider()
342 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider()
343 playbackRate.mPitch, playbackRate.mStretchMode, playbackRate.mFallbackMode); in TimestretchBufferProvider()
459 status_t TimestretchBufferProvider::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
461 mPlaybackRate = playbackRate; in setPlaybackRate()
DBufferProviders.h155 const AudioPlaybackRate &playbackRate);
165 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
DAudioMixer.cpp732 const AudioPlaybackRate *playbackRate = in setParameter() local
734 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate), in setParameter()
735 "bad parameters speed %f, pitch %f",playbackRate->mSpeed, in setParameter()
736 playbackRate->mPitch); in setParameter()
737 if (track.setPlaybackRate(*playbackRate)) { in setParameter()
740 playbackRate->mSpeed, in setParameter()
741 playbackRate->mPitch, in setParameter()
742 playbackRate->mStretchMode, in setParameter()
743 playbackRate->mFallbackMode); in setParameter()
794 bool AudioMixer::track_t::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
[all …]
DAudioMixer.h277 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
DThreads.cpp4041 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local
4044 sampleRate, mNormalFrameCount, mSampleRate, playbackRate.mSpeed); in prepareTracks_l()
4213 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local
4218 &playbackRate); in prepareTracks_l()
/frameworks/av/media/libmedia/
DAudioTrack.cpp853 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
856 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate()
867 mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
869 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate()
870 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
871 const float effectivePitch = adjustPitch(playbackRate.mPitch); in setPlaybackRate()
872 AudioPlaybackRate playbackRateTemp = playbackRate; in setPlaybackRate()
881 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
887 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
894 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
[all …]
/frameworks/av/include/private/media/
DAudioTrackShared.h382 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { in setPlaybackRate() argument
383 mPlaybackRateMutator.push(playbackRate); in setPlaybackRate()