commit | 19fa75e6821383146b7be540e3a7264131fb2fc7 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Jun 23 00:42:30 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jun 23 00:42:30 2020 +0000 |
tree | 4aeae0bf5c738066fa4bae84e3a5a48bef824d21 | |
parent | 5c029e5511f5de207c691945eab0675714b7431a [diff] | |
parent | 43fd672bd7cfd9eef13012c545ad4630d12e325c [diff] |
Merge "AudioFlinger: Fix spurious underrun logging" into rvc-dev am: 54cc1e3c43 am: 43fd672bd7 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/11956760 Change-Id: Iabdf6f2c67f14ad564cdc3c0eba2fd5586fca6af
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index abd5eb8..d366bb7 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp
@@ -805,7 +805,7 @@ status_t status = mServerProxy->obtainBuffer(&buf); buffer->frameCount = buf.mFrameCount; buffer->raw = buf.mRaw; - if (buf.mFrameCount == 0 && !isStopping() && !isStopped() && !isPaused()) { + if (buf.mFrameCount == 0 && !isStopping() && !isStopped() && !isPaused() && !isOffloaded()) { ALOGV("%s(%d): underrun, framesReady(%zu) < framesDesired(%zd), state: %d", __func__, mId, buf.mFrameCount, desiredFrames, mState); mAudioTrackServerProxy->tallyUnderrunFrames(desiredFrames);