/frameworks/av/include/media/ |
D | AudioResamplerPublic.h | 60 static inline bool isAudioPlaybackRateValid(const AudioPlaybackRate &playbackRate) { in isAudioPlaybackRateValid() argument 61 if (playbackRate.mFallbackMode == AUDIO_TIMESTRETCH_FALLBACK_FAIL && in isAudioPlaybackRateValid() 62 (playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_VOICE || in isAudioPlaybackRateValid() 63 playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_DEFAULT)) { in isAudioPlaybackRateValid() 65 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid() 66 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid() 67 playbackRate.mPitch >= AUDIO_TIMESTRETCH_PITCH_MIN && in isAudioPlaybackRateValid() 68 playbackRate.mPitch <= AUDIO_TIMESTRETCH_PITCH_MAX; in isAudioPlaybackRateValid() 70 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid() 71 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid() [all …]
|
/frameworks/av/media/libaudioprocessing/include/media/ |
D | AudioResamplerPublic.h | 60 static inline bool isAudioPlaybackRateValid(const AudioPlaybackRate &playbackRate) { in isAudioPlaybackRateValid() argument 61 if (playbackRate.mFallbackMode == AUDIO_TIMESTRETCH_FALLBACK_FAIL && in isAudioPlaybackRateValid() 62 (playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_VOICE || in isAudioPlaybackRateValid() 63 playbackRate.mStretchMode == AUDIO_TIMESTRETCH_STRETCH_DEFAULT)) { in isAudioPlaybackRateValid() 65 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid() 66 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid() 67 playbackRate.mPitch >= AUDIO_TIMESTRETCH_PITCH_MIN && in isAudioPlaybackRateValid() 68 playbackRate.mPitch <= AUDIO_TIMESTRETCH_PITCH_MAX; in isAudioPlaybackRateValid() 70 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid() 71 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid() [all …]
|
D | BufferProviders.h | 181 const AudioPlaybackRate &playbackRate); 192 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
D | AudioMixer.h | 102 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixer.cpp | 450 const AudioPlaybackRate *playbackRate = in setParameter() local 452 ALOGW_IF(!isAudioPlaybackRateValid(*playbackRate), in setParameter() 454 playbackRate->mSpeed, playbackRate->mPitch); in setParameter() 455 if (track->setPlaybackRate(*playbackRate)) { in setParameter() 458 playbackRate->mSpeed, in setParameter() 459 playbackRate->mPitch, in setParameter() 460 playbackRate->mStretchMode, in setParameter() 461 playbackRate->mFallbackMode); in setParameter() 475 bool AudioMixer::Track::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 478 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/libmediahelper/ |
D | AudioValidator.cpp | 176 const audio_playback_rate_t& playbackRate) in validatePlaybackRate() argument 178 if (playbackRate.mSpeed < 0.f || playbackRate.mPitch < 0.f) return BAD_VALUE; in validatePlaybackRate() 179 return validatePlaybackRateFallbackMode(playbackRate.mFallbackMode) ?: in validatePlaybackRate() 180 validatePlaybackRateStretchMode(playbackRate.mStretchMode); in validatePlaybackRate()
|
/frameworks/av/media/libaudiohal/impl/ |
D | StreamHalHidl.cpp | 661 audio_playback_rate_t* playbackRate __unused) { in getPlaybackRateParameters() 666 const audio_playback_rate_t& playbackRate __unused) { in setPlaybackRateParameters() 715 status_t StreamOutHalHidl::getPlaybackRateParameters(audio_playback_rate_t* playbackRate) { in getPlaybackRateParameters() argument 722 playbackRate->mSpeed = hidlPlaybackRate.speed; in getPlaybackRateParameters() 723 playbackRate->mPitch = hidlPlaybackRate.pitch; in getPlaybackRateParameters() 724 playbackRate->mStretchMode = in getPlaybackRateParameters() 727 playbackRate->mFallbackMode = in getPlaybackRateParameters() 735 status_t StreamOutHalHidl::setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) { in setPlaybackRateParameters() argument 739 PlaybackRate{playbackRate.mSpeed, playbackRate.mPitch, in setPlaybackRateParameters() 740 static_cast<TimestretchMode>(playbackRate.mStretchMode), in setPlaybackRateParameters() [all …]
|
D | StreamHalLocal.h | 165 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) override; 168 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) override;
|
D | StreamHalLocal.cpp | 319 status_t StreamOutHalLocal::getPlaybackRateParameters(audio_playback_rate_t* playbackRate) { in getPlaybackRateParameters() argument 321 return mStream->get_playback_rate_parameters(mStream, playbackRate); in getPlaybackRateParameters() 324 status_t StreamOutHalLocal::setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) { in setPlaybackRateParameters() argument 326 return mStream->set_playback_rate_parameters(mStream, &playbackRate); in setPlaybackRateParameters()
|
D | StreamHalHidl.h | 184 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) override; 187 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) override;
|
/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/libmediahelper/include/media/ |
D | AudioValidator.h | 105 static status_t validatePlaybackRate(const audio_playback_rate_t& playbackRate);
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IAudioTrack.aidl | 115 void setPlaybackRateParameters(in AudioPlaybackRate playbackRate); in setPlaybackRateParameters() argument
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | StreamHalInterface.h | 189 virtual status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) = 0; 192 virtual status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) = 0;
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 1151 status_t AudioTrack::setPlaybackRate(const AudioPlaybackRate &playbackRate) in setPlaybackRate() argument 1154 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 1160 legacy2aidl_audio_playback_rate_t_AudioPlaybackRate(playbackRate)))); in setPlaybackRate() 1162 mPlaybackRate = playbackRate; in setPlaybackRate() 1171 __func__, mPortId, mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 1173 const uint32_t effectiveRate = adjustSampleRate(mSampleRate, playbackRate.mPitch); in setPlaybackRate() 1174 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() 1175 const float effectivePitch = adjustPitch(playbackRate.mPitch); in setPlaybackRate() 1176 AudioPlaybackRate playbackRateTemp = playbackRate; in setPlaybackRate() 1185 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate() [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaClock.h | 98 int64_t anchorTimeMediaUs, int64_t anchorTimeRealUs , float playbackRate);
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 389 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { in setPlaybackRate() argument 390 mPlaybackRateMutator.push(playbackRate); in setPlaybackRate()
|
/frameworks/av/services/audioflinger/ |
D | PlaybackTracks.h | 125 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate); 126 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate);
|
D | Tracks.cpp | 487 const media::AudioPlaybackRate& playbackRate) in setPlaybackRateParameters() argument 490 aidl2legacy_AudioPlaybackRate_audio_playback_rate_t(playbackRate)); in setPlaybackRateParameters() 1700 audio_playback_rate_t* playbackRate) in getPlaybackRateParameters() argument 1708 status = t->mOutput->stream->getPlaybackRateParameters(playbackRate); in getPlaybackRateParameters() 1710 !isAudioPlaybackRateEqual(mPlaybackRateParameters, *playbackRate), in getPlaybackRateParameters() 1718 const audio_playback_rate_t& playbackRate) in setPlaybackRateParameters() argument 1726 status = t->mOutput->stream->setPlaybackRateParameters(playbackRate); in setPlaybackRateParameters() 1728 mPlaybackRateParameters = playbackRate; in setPlaybackRateParameters()
|
D | AudioFlinger.h | 668 const media::AudioPlaybackRate& playbackRate) override;
|
/frameworks/av/media/libaudioclient/fuzzer/ |
D | audioflinger_fuzzer.cpp | 270 AudioPlaybackRate playbackRate = {}; in invokeAudioTrack() local 271 playbackRate.mSpeed = mFdp.ConsumeFloatingPoint<float>(); in invokeAudioTrack() 272 playbackRate.mPitch = mFdp.ConsumeFloatingPoint<float>(); in invokeAudioTrack() 273 track->setPlaybackRate(playbackRate); in invokeAudioTrack()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioTrack.h | 567 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayer.cpp | 1464 float playbackRate; in onMessageReceived() local 1467 CHECK(msg->findFloat("playback-rate", &playbackRate)); in onMessageReceived() 1472 in.writeFloat(playbackRate); in onMessageReceived()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 3694 float playbackRate = parcel.readFloat(); in handleMessage() local 3699 anchorMediaUs /*Us*/, anchorRealUs * 1000 /*Ns*/, playbackRate); in handleMessage()
|