Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f57bb402 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6621766 from 54cc1e3c to rvc-release

Change-Id: I269192259f439d4393cf17727ca49ac1c7d04a50
parents 7f6776a2 54cc1e3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -805,7 +805,7 @@ status_t AudioFlinger::PlaybackThread::Track::getNextBuffer(AudioBufferProvider:
    status_t status = mServerProxy->obtainBuffer(&buf);
    status_t status = mServerProxy->obtainBuffer(&buf);
    buffer->frameCount = buf.mFrameCount;
    buffer->frameCount = buf.mFrameCount;
    buffer->raw = buf.mRaw;
    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",
        ALOGV("%s(%d): underrun,  framesReady(%zu) < framesDesired(%zd), state: %d",
                __func__, mId, buf.mFrameCount, desiredFrames, mState);
                __func__, mId, buf.mFrameCount, desiredFrames, mState);
        mAudioTrackServerProxy->tallyUnderrunFrames(desiredFrames);
        mAudioTrackServerProxy->tallyUnderrunFrames(desiredFrames);