/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 …]
|
/frameworks/av/media/libaudioprocessing/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 …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 444 const AudioPlaybackRate *playbackRate = in setParameter() local 446 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate), in setParameter() 448 playbackRate->mSpeed, playbackRate->mPitch); in setParameter() 449 if (track->setPlaybackRate(*playbackRate)) { in setParameter() 452 playbackRate->mSpeed, in setParameter() 453 playbackRate->mPitch, in setParameter() 454 playbackRate->mStretchMode, in setParameter() 455 playbackRate->mFallbackMode); in setParameter() 469 bool AudioMixer::Track::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 472 fabs(playbackRate.mSpeed - mPlaybackRate.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in setPlaybackRate() [all …]
|
D | BufferProviders.cpp | 405 audio_format_t format, uint32_t sampleRate, const AudioPlaybackRate &playbackRate) : in TimestretchBufferProvider() argument 420 setPlaybackRate(playbackRate); in TimestretchBufferProvider() 422 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider() 423 playbackRate.mPitch, playbackRate.mStretchMode, playbackRate.mFallbackMode); in TimestretchBufferProvider() 549 status_t TimestretchBufferProvider::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 551 mPlaybackRate = playbackRate; in setPlaybackRate()
|
/frameworks/av/media/libstagefright/ |
D | MediaClock.cpp | 312 int64_t anchorTimeRealUs, float playbackRate) { in updateAnchorTimesAndPlaybackRate_l() argument 315 || mPlaybackRate != playbackRate) { in updateAnchorTimesAndPlaybackRate_l() 318 mPlaybackRate = playbackRate; in updateAnchorTimesAndPlaybackRate_l()
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 975 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 978 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 989 __func__, mPortId, mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 991 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate() 992 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 993 const float effectivePitch = adjustPitch(playbackRate.mPitch); in setPlaybackRate() 994 AudioPlaybackRate playbackRateTemp = playbackRate; in setPlaybackRate() 1003 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 1009 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 1017 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | BufferProviders.h | 181 const AudioPlaybackRate &playbackRate); 192 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaClock.h | 98 int64_t anchorTimeMediaUs, int64_t anchorTimeRealUs , float playbackRate);
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioMixer.h | 128 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
D | AudioTrack.h | 483 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 386 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { in setPlaybackRate() argument 387 mPlaybackRateMutator.push(playbackRate); in setPlaybackRate()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayer.cpp | 1449 float playbackRate; in onMessageReceived() local 1452 CHECK(msg->findFloat("playback-rate", &playbackRate)); in onMessageReceived() 1457 in.writeFloat(playbackRate); in onMessageReceived()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3587 float playbackRate = parcel.readFloat(); in handleMessage() local 3592 anchorMediaUs /*Us*/, anchorRealUs * 1000 /*Ns*/, playbackRate); in handleMessage()
|
/frameworks/av/services/audioflinger/ |
D | Threads.cpp | 4946 AudioPlaybackRate playbackRate = track->mAudioTrackServerProxy->getPlaybackRate(); in prepareTracks_l() local 4949 sampleRate, mNormalFrameCount, mSampleRate, playbackRate.mSpeed); in prepareTracks_l() 5120 AudioPlaybackRate playbackRate = proxy->getPlaybackRate(); in prepareTracks_l() local 5125 &playbackRate); in prepareTracks_l()
|