/frameworks/av/media/libstagefright/ |
D | MediaClock.cpp | 37 mPlaybackRate(1.0) { in MediaClock() 66 anchorTimeMediaUs + (nowUs - anchorTimeRealUs) * (double)mPlaybackRate; in updateAnchor() 77 mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in updateAnchor() 96 mPlaybackRate = rate; in setPlaybackRate() 101 mAnchorTimeMediaUs += (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in setPlaybackRate() 107 mPlaybackRate = rate; in setPlaybackRate() 112 return mPlaybackRate; in getPlaybackRate() 132 + (realUs - mAnchorTimeRealUs) * (double)mPlaybackRate; in getMediaTime_l() 153 if (mPlaybackRate == 0.0) { in getRealTimeFor() 164 *outRealUs = (targetMediaUs - nowMediaUs) / (double)mPlaybackRate + nowUs; in getRealTimeFor()
|
D | MediaSync.cpp | 60 mPlaybackRate(0.0) { in MediaSync() 65 mPlaybackSettings.mSpeed = mPlaybackRate; in MediaSync() 241 updatePlaybackRate_l(mPlaybackRate); in resync_l() 245 if (rate > mPlaybackRate) { in updatePlaybackRate_l() 248 mPlaybackRate = rate; in updatePlaybackRate_l() 262 if (mPlaybackRate == 0.0f) { in getPlayTimeForPendingAudioFrames() 281 / (mNativeSampleRateInHz * (double)mPlaybackRate); in getPlayTimeForPendingAudioFrames() 286 "is too high, possibly due to super low playback rate(%f)", mPlaybackRate); in getPlayTimeForPendingAudioFrames() 615 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/services/audioflinger/ |
D | BufferProviders.cpp | 390 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer() 391 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer() 461 mPlaybackRate = playbackRate; in setPlaybackRate() 463 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate() 467 mAudioPlaybackRateValid = isAudioPlaybackRateValid(mPlaybackRate); in setPlaybackRate() 480 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames() 482 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames() 490 switch(mPlaybackRate.mFallbackMode) { in processFrames() 512 mPlaybackRate.mFallbackMode); in processFrames()
|
D | BufferProviders.h | 180 AudioPlaybackRate mPlaybackRate; variable
|
D | AudioMixer.h | 263 AudioPlaybackRate mPlaybackRate; member
|
D | AudioMixer.cpp | 230 t->mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in getTrackName() 797 fabs(playbackRate.mSpeed - mPlaybackRate.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in setPlaybackRate() 798 fabs(playbackRate.mPitch - mPlaybackRate.mPitch) < AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) || in setPlaybackRate() 799 isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 802 mPlaybackRate = playbackRate; in setPlaybackRate()
|
/frameworks/av/media/libmedia/ |
D | AudioTrack.cpp | 436 mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in set() 817 const uint32_t effectiveSampleRate = adjustSampleRate(rate, mPlaybackRate.mPitch); in setSampleRate() 856 if (isAudioPlaybackRateEqual(playbackRate, mPlaybackRate)) { in setPlaybackRate() 903 mPlaybackRate = playbackRate; in setPlaybackRate() 913 return mPlaybackRate; in getPlaybackRate() 939 / ((double)mSampleRate * mPlaybackRate.mSpeed)); in getBufferDurationInUs() 1365 max(mMaxRequiredSpeed, mPlaybackRate.mSpeed); in createTrack_l() 1539 const uint32_t effectiveSampleRate = adjustSampleRate(mSampleRate, mPlaybackRate.mPitch); in createTrack_l() 1540 const float effectiveSpeed = adjustSpeed(mPlaybackRate.mSpeed, mPlaybackRate.mPitch); in createTrack_l() 1541 const float effectivePitch = adjustPitch(mPlaybackRate.mPitch); in createTrack_l() [all …]
|
D | AudioTrackShared.cpp | 855 mPlaybackRateObserver.poll(mPlaybackRate); in getPlaybackRate() 856 return mPlaybackRate; in getPlaybackRate()
|
/frameworks/av/include/media/stagefright/ |
D | MediaSync.h | 224 float mPlaybackRate; variable 284 bool isPlaying() { return mPlaybackRate != 0.0; } in isPlaying()
|
D | MediaClock.h | 73 float mPlaybackRate; member
|
/frameworks/wilhelm/src/ |
D | classes.h | 64 IPlaybackRate mPlaybackRate; member 267 IPlaybackRate mPlaybackRate; member
|
D | classes.c | 84 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC, offsetof(CAudioPlayer, mPlaybackRate)}, 316 {MPH_PLAYBACKRATE, INTERFACE_DYNAMIC_OPTIONAL, offsetof(CMidiPlayer, mPlaybackRate)},
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerRenderer.cpp | 134 mPlaybackRate = mPlaybackSettings.mSpeed; in Renderer() 135 mMediaClock->setPlaybackRate(mPlaybackRate); in Renderer() 198 mPlaybackRate = rate.mSpeed; in onConfigPlayback() 199 mMediaClock->setPlaybackRate(mPlaybackRate); in onConfigPlayback() 485 if (mPlaybackRate > 1.0f) { in onMessageReceived() 486 delayUs /= mPlaybackRate; in onMessageReceived() 1186 postDelayUs /= mPlaybackRate; in postDrainVideoQueue() 1670 mMediaClock->setPlaybackRate(mPlaybackRate); in onResume()
|
D | NuPlayerRenderer.h | 156 float mPlaybackRate; // audio track rate member
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 550 mPlaybackRate = AUDIO_PLAYBACK_RATE_DEFAULT; in ServerProxy() 598 AudioPlaybackRate mPlaybackRate; // last observed playback rate
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaPlayerService.cpp | 1378 mPlaybackRate(AUDIO_PLAYBACK_RATE_DEFAULT), in AudioOutput() 1791 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open() 1792 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open() 1794 targetSpeed, mPlaybackRate.mSpeed); in open() 1865 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open() 1873 res = t->setPlaybackRate(mPlaybackRate); in open() 2040 mPlaybackRate = rate; in setPlaybackRate() 2049 mPlaybackRate = rate; in setPlaybackRate()
|
D | MediaPlayerService.h | 149 AudioPlaybackRate mPlaybackRate; variable
|
/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 1308 pAudioPlayer->mPlaybackRate.mMinRate = AUDIOTRACK_MIN_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create() 1309 pAudioPlayer->mPlaybackRate.mMaxRate = AUDIOTRACK_MAX_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create() 1312 pAudioPlayer->mPlaybackRate.mMinRate = MEDIAPLAYER_MIN_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create() 1313 pAudioPlayer->mPlaybackRate.mMaxRate = MEDIAPLAYER_MAX_PLAYBACKRATE_PERMILLE; in android_audioPlayer_create()
|
/frameworks/av/include/media/ |
D | AudioTrack.h | 944 AudioPlaybackRate mPlaybackRate; variable
|