Home
last modified time | relevance | path

Searched refs:mPlaybackRate (Results 1 – 21 of 21) sorted by relevance

/frameworks/av/media/libstagefright/
DMediaClock.cpp44 mPlaybackRate(1.0), in MediaClock()
86 updateAnchorTimesAndPlaybackRate_l(-1, -1, mPlaybackRate); in clearAnchor()
101 anchorTimeMediaUs + (nowUs - anchorTimeRealUs) * (double)mPlaybackRate; in updateAnchor()
112 mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in updateAnchor()
118 updateAnchorTimesAndPlaybackRate_l(nowMediaUs, nowUs, mPlaybackRate); in updateAnchor()
133 mPlaybackRate = rate; in setPlaybackRate()
138 int64_t nowMediaUs = mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in setPlaybackRate()
153 return mPlaybackRate; in getPlaybackRate()
173 + (realUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in getMediaTime_l()
194 if (mPlaybackRate == 0.0) { in getRealTimeFor()
[all …]
DMediaSync.cpp62 mPlaybackRate(0.0) { in MediaSync()
68 mPlaybackSettings.mSpeed = mPlaybackRate; in MediaSync()
244 updatePlaybackRate_l(mPlaybackRate); in resync_l()
248 if (rate > mPlaybackRate) { in updatePlaybackRate_l()
251 mPlaybackRate = rate; in updatePlaybackRate_l()
265 if (mPlaybackRate == 0.0f) { in getPlayTimeForPendingAudioFrames()
284 / (mNativeSampleRateInHz * (double)mPlaybackRate); in getPlayTimeForPendingAudioFrames()
289 "is too high, possibly due to super low playback rate(%f)", mPlaybackRate); in getPlayTimeForPendingAudioFrames()
602 ALOGI_IF(mPlaybackRate != 0.f, "still waiting to release a buffer before acquire"); in onFrameAvailableFromInput()
/frameworks/base/media/java/android/media/
DMediaSync.java203 private float mPlaybackRate = 0.0f; field in MediaSync
377 mPlaybackRate = native_setPlaybackParams(params);; in setPlaybackParams()
379 if (mPlaybackRate != 0.0 && mAudioThread != null) { in setPlaybackParams()
408 mPlaybackRate = native_setSyncParams(params);; in setSyncParams()
410 if (mPlaybackRate != 0.0 && mAudioThread != null) { in setSyncParams()
518 if (mPlaybackRate != 0.0) { in queueAudio()
528 if (mPlaybackRate == 0.0) { in postRenderAudio()
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp470 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer()
471 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer()
551 mPlaybackRate = playbackRate; in setPlaybackRate()
553 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate()
557 mAudioPlaybackRateValid = isAudioPlaybackRateValid(mPlaybackRate); in setPlaybackRate()
573 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
575 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
580 switch(mPlaybackRate.mFallbackMode) { in processFrames()
602 mPlaybackRate.mFallbackMode); in processFrames()
DAudioMixer.cpp472 fabs(playbackRate.mSpeed - mPlaybackRate.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in setPlaybackRate()
473 fabs(playbackRate.mPitch - mPlaybackRate.mPitch) < AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) || in setPlaybackRate()
474 isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate()
477 mPlaybackRate = playbackRate; in setPlaybackRate()
545 t->mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in postCreateTrack()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h224 float mPlaybackRate; variable
284 bool isPlaying() { return mPlaybackRate != 0.0; } in isPlaying()
DMediaClock.h110 float mPlaybackRate; member
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp506 mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in set()
939 const uint32_t effectiveSampleRate = adjustSampleRate(rate, mPlaybackRate.mPitch); in setSampleRate()
978 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate()
1026 mPlaybackRate = playbackRate; in setPlaybackRate()
1036 return mPlaybackRate; in getPlaybackRate()
1062 / ((double)mSampleRate * mPlaybackRate.mSpeed)); in getBufferDurationInUs()
1461 max(mMaxRequiredSpeed, mPlaybackRate.mSpeed); in createTrack_l()
1599 const uint32_t effectiveSampleRate = adjustSampleRate(mSampleRate, mPlaybackRate.mPitch); in createTrack_l()
1600 const float effectiveSpeed = adjustSpeed(mPlaybackRate.mSpeed, mPlaybackRate.mPitch); in createTrack_l()
1601 const float effectivePitch = adjustPitch(mPlaybackRate.mPitch); in createTrack_l()
[all …]
DAudioTrackShared.cpp980 mPlaybackRateObserver.poll(mPlaybackRate); in getPlaybackRate()
981 return mPlaybackRate; in getPlaybackRate()
/frameworks/wilhelm/src/
Dclasses.h66 IPlaybackRate mPlaybackRate; member
275 IPlaybackRate mPlaybackRate; member
Dclasses.cpp84 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC, offsetof(CAudioPlayer, mPlaybackRate)},
319 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC_OPTIONAL, offsetof(CMidiPlayer, mPlaybackRate)},
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp157 mPlaybackRate = mPlaybackSettings.mSpeed; in Renderer()
158 mMediaClock->setPlaybackRate(mPlaybackRate); in Renderer()
232 mPlaybackRate = rate.mSpeed; in onConfigPlayback()
233 mMediaClock->setPlaybackRate(mPlaybackRate); in onConfigPlayback()
588 if (mPlaybackRate > 1.0f) { in onMessageReceived()
589 delayUs /= mPlaybackRate; in onMessageReceived()
1811 mMediaClock->setPlaybackRate(mPlaybackRate); in onResume()
DNuPlayerRenderer.h170 float mPlaybackRate; // audio track rate member
/frameworks/av/media/libaudioclient/include/media/
DAudioMixer.h169 AudioPlaybackRate mPlaybackRate; member
DAudioTrack.h1041 AudioPlaybackRate mPlaybackRate; variable
/frameworks/av/include/private/media/
DAudioTrackShared.h583 mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in ServerProxy()
638 AudioPlaybackRate mPlaybackRate; // last observed playback rate
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1600 mPlaybackRate(AUDIO_PLAYBACK_RATE_DEFAULT), in AudioOutput()
2014 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open()
2015 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open()
2017 targetSpeed, mPlaybackRate.mSpeed); in open()
2107 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open()
2124 res = mTrack->setPlaybackRate(mPlaybackRate); in updateTrack()
2300 mPlaybackRate = rate; in setPlaybackRate()
2309 mPlaybackRate = rate; in setPlaybackRate()
DMediaPlayerService.h165 AudioPlaybackRate mPlaybackRate; variable
/frameworks/av/media/libmedia/include/media/
DBufferProviders.h207 AudioPlaybackRate mPlaybackRate; variable
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1415 pAudioPlayer->mPlaybackRate.mMinRate = AUDIOTRACK_MIN_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create()
1416 pAudioPlayer->mPlaybackRate.mMaxRate = AUDIOTRACK_MAX_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create()
1419 pAudioPlayer->mPlaybackRate.mMinRate = MEDIAPLAYER_MIN_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create()
1420 pAudioPlayer->mPlaybackRate.mMaxRate = MEDIAPLAYER_MAX_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt38988 Landroid/media/MediaSync;->mPlaybackRate:F