/frameworks/av/media/libstagefright/ |
D | MediaClock.cpp | 44 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 …]
|
D | MediaSync.cpp | 62 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/ |
D | MediaSync.java | 203 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/ |
D | BufferProviders.cpp | 469 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer() 470 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer() 550 mPlaybackRate = playbackRate; in setPlaybackRate() 552 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate() 556 mAudioPlaybackRateValid = isAudioPlaybackRateValid(mPlaybackRate); in setPlaybackRate() 572 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames() 574 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames() 579 switch(mPlaybackRate.mFallbackMode) { in processFrames() 601 mPlaybackRate.mFallbackMode); in processFrames()
|
D | AudioMixer.cpp | 167 t->mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in create() 857 fabs(playbackRate.mSpeed - mPlaybackRate.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in setPlaybackRate() 858 fabs(playbackRate.mPitch - mPlaybackRate.mPitch) < AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) || in setPlaybackRate() 859 isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 862 mPlaybackRate = playbackRate; in setPlaybackRate()
|
/frameworks/av/media/libmediaplayer2/ |
D | MediaPlayer2AudioOutput.cpp | 67 mPlaybackRate(AUDIO_PLAYBACK_RATE_DEFAULT), in MediaPlayer2AudioOutput() 313 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open() 314 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open() 316 targetSpeed, mPlaybackRate.mSpeed); in open() 344 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open() 361 res = mJAudioTrack->setPlaybackRate(mPlaybackRate); in updateTrack_l() 453 mPlaybackRate = rate; in setPlaybackRate() 462 mPlaybackRate = rate; in setPlaybackRate()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaSync.h | 224 float mPlaybackRate; variable 284 bool isPlaying() { return mPlaybackRate != 0.0; } in isPlaying()
|
D | MediaClock.h | 110 float mPlaybackRate; member
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 506 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 …]
|
D | AudioTrackShared.cpp | 980 mPlaybackRateObserver.poll(mPlaybackRate); in getPlaybackRate() 981 return mPlaybackRate; in getPlaybackRate()
|
/frameworks/wilhelm/src/ |
D | classes.h | 66 IPlaybackRate mPlaybackRate; member 275 IPlaybackRate mPlaybackRate; member
|
D | classes.cpp | 84 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC, offsetof(CAudioPlayer, mPlaybackRate)}, 319 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC_OPTIONAL, offsetof(CMidiPlayer, mPlaybackRate)},
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerRenderer.cpp | 157 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()
|
D | NuPlayerRenderer.h | 170 float mPlaybackRate; // audio track rate member
|
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/ |
D | MediaPlayer2AudioOutput.h | 115 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 583 mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in ServerProxy() 638 AudioPlaybackRate mPlaybackRate; // last observed playback rate
|
/frameworks/av/media/libmedia/include/media/ |
D | BufferProviders.h | 207 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/av/include/media/ |
D | BufferProviders.h | 207 AudioPlaybackRate mPlaybackRate; variable
|
D | AudioMixer.h | 397 AudioPlaybackRate mPlaybackRate; member
|
D | AudioTrack.h | 1033 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaPlayerService.cpp | 1599 mPlaybackRate(AUDIO_PLAYBACK_RATE_DEFAULT), in AudioOutput() 2013 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open() 2014 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open() 2016 targetSpeed, mPlaybackRate.mSpeed); in open() 2106 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open() 2123 res = mTrack->setPlaybackRate(mPlaybackRate); in updateTrack() 2299 mPlaybackRate = rate; in setPlaybackRate() 2308 mPlaybackRate = rate; in setPlaybackRate()
|
D | MediaPlayerService.h | 163 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioMixer.h | 397 AudioPlaybackRate mPlaybackRate; member
|
D | AudioTrack.h | 1033 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 1415 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()
|