Searched refs:playbackRate (Results 1 – 10 of 10) sorted by relevance
/frameworks/av/include/media/ |
D | AudioResamplerPublic.h | 111 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 …]
|
D | AudioTrack.h | 395 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
/frameworks/av/services/audioflinger/ |
D | BufferProviders.cpp | 326 audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) : in TimestretchBufferProvider() argument 341 setPlaybackRate(playbackRate); in TimestretchBufferProvider() 343 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider() 344 playbackRate.mPitch, playbackRate.mStretchMode, playbackRate.mFallbackMode); in TimestretchBufferProvider() 460 status_t TimestretchBufferProvider::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 462 mPlaybackRate = playbackRate; in setPlaybackRate()
|
D | BufferProviders.h | 155 const AudioPlaybackRate &playbackRate); 165 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
D | AudioMixer.cpp | 734 const AudioPlaybackRate *playbackRate = in setParameter() local 736 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate), in setParameter() 737 "bad parameters speed %f, pitch %f",playbackRate->mSpeed, in setParameter() 738 playbackRate->mPitch); in setParameter() 739 if (track.setPlaybackRate(*playbackRate)) { in setParameter() 742 playbackRate->mSpeed, in setParameter() 743 playbackRate->mPitch, in setParameter() 744 playbackRate->mStretchMode, in setParameter() 745 playbackRate->mFallbackMode); in setParameter() 797 bool AudioMixer::track_t::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument [all …]
|
D | AudioMixer.h | 277 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
D | Tracks.cpp | 904 AudioPlaybackRate playbackRate = mAudioTrackServerProxy->getPlaybackRate(); in getTimestamp() local 906 sampleRate * playbackRate.mSpeed)/ playbackThread->mSampleRate; in getTimestamp()
|
D | Threads.cpp | 3858 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local 3861 sampleRate, mNormalFrameCount, mSampleRate, playbackRate.mSpeed); in prepareTracks_l() 4030 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local 4035 &playbackRate); in prepareTracks_l()
|
/frameworks/av/media/libmedia/ |
D | AudioTrack.cpp | 795 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 798 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 808 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate() 809 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 810 const float effectivePitch = adjustPitch(playbackRate.mPitch); in setPlaybackRate() 811 AudioPlaybackRate playbackRateTemp = playbackRate; in setPlaybackRate() 820 ALOGV("setPlaybackRate(%f, %f) failed", playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 827 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 833 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 836 mPlaybackRate = playbackRate; in setPlaybackRate()
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 342 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { in setPlaybackRate() argument 343 mPlaybackRateMutator.push(playbackRate); in setPlaybackRate()
|