Home
last modified time | relevance | path

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

12

/frameworks/av/include/media/
DAudioResamplerPublic.h60 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/
DAudioResamplerPublic.h60 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 …]
DBufferProviders.h181 const AudioPlaybackRate &playbackRate);
192 virtual status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
DAudioMixer.h102 bool setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/media/libaudioprocessing/
DAudioMixer.cpp450 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 …]
DBufferProviders.cpp405 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/
DAudioValidator.cpp176 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/
DStreamHalHidl.cpp661 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 …]
DStreamHalLocal.h165 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) override;
168 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) override;
DStreamHalLocal.cpp319 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()
DStreamHalHidl.h184 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate) override;
187 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate) override;
/frameworks/av/media/libstagefright/
DMediaClock.cpp312 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/
DAudioValidator.h105 static status_t validatePlaybackRate(const audio_playback_rate_t& playbackRate);
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioTrack.aidl115 void setPlaybackRateParameters(in AudioPlaybackRate playbackRate); in setPlaybackRateParameters() argument
/frameworks/av/media/libaudiohal/include/media/audiohal/
DStreamHalInterface.h189 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/
DAudioTrack.cpp1151 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/
DMediaClock.h98 int64_t anchorTimeMediaUs, int64_t anchorTimeRealUs , float playbackRate);
/frameworks/av/include/private/media/
DAudioTrackShared.h389 void setPlaybackRate(const AudioPlaybackRate& playbackRate) { in setPlaybackRate() argument
390 mPlaybackRateMutator.push(playbackRate); in setPlaybackRate()
/frameworks/av/services/audioflinger/
DPlaybackTracks.h125 status_t getPlaybackRateParameters(audio_playback_rate_t* playbackRate);
126 status_t setPlaybackRateParameters(const audio_playback_rate_t& playbackRate);
DTracks.cpp487 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()
DAudioFlinger.h668 const media::AudioPlaybackRate& playbackRate) override;
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp270 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/
DAudioTrack.h567 status_t setPlaybackRate(const AudioPlaybackRate &playbackRate);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp1464 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/
DMediaPlayer.java3694 float playbackRate = parcel.readFloat(); in handleMessage() local
3699 anchorMediaUs /*Us*/, anchorRealUs * 1000 /*Ns*/, playbackRate); in handleMessage()

12