Home
last modified time | relevance | path

Searched refs:playbackRate (Results 1 – 13 of 13) 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 …]
DBufferProviders.h169 const AudioPlaybackRate &playbackRate);
179 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
DAudioMixer.h275 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
DAudioTrack.h457 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/media/libaudioprocessing/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 …]
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp380 audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) : in TimestretchBufferProvider() argument
395 setPlaybackRate(playbackRate); in TimestretchBufferProvider()
397 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider()
398 playbackRate.mPitch, playbackRate.mStretchMode, playbackRate.mFallbackMode); in TimestretchBufferProvider()
514 status_t TimestretchBufferProvider::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
516 mPlaybackRate = playbackRate; in setPlaybackRate()
DAudioMixer.cpp736 const AudioPlaybackRate *playbackRate = in setParameter() local
738 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate), in setParameter()
739 "bad parameters speed %f, pitch %f",playbackRate->mSpeed, in setParameter()
740 playbackRate->mPitch); in setParameter()
741 if (track.setPlaybackRate(*playbackRate)) { in setParameter()
744 playbackRate->mSpeed, in setParameter()
745 playbackRate->mPitch, in setParameter()
746 playbackRate->mStretchMode, in setParameter()
747 playbackRate->mFallbackMode); in setParameter()
798 bool AudioMixer::track_t::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
[all …]
/frameworks/av/media/libmedia/include/media/
DBufferProviders.h169 const AudioPlaybackRate &playbackRate);
179 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp892 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument
895 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate()
906 mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
908 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate()
909 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
910 const float effectivePitch = adjustPitch(playbackRate.mPitch); in setPlaybackRate()
911 AudioPlaybackRate playbackRateTemp = playbackRate; in setPlaybackRate()
920 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
926 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
934 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()
/frameworks/av/media/libaudioclient/include/media/
DAudioMixer.h275 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
DAudioTrack.h457 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/services/audioflinger/
DThreads.cpp4230 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local
4233 sampleRate, mNormalFrameCount, mSampleRate, playbackRate.mSpeed); in prepareTracks_l()
4424 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local
4429 &playbackRate); in prepareTracks_l()