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

Commit b2c99b6f authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "audio:Fix the accumulation bug of mFramesWritten" into main

parents 1fcceb51 44eb0af6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2616,6 +2616,10 @@ nsecs_t AudioTrack::processAudioBuffer()
        if (err != NO_ERROR) {
            if (err == TIMED_OUT || err == WOULD_BLOCK || err == -EINTR ||
                    (isOffloaded && (err == DEAD_OBJECT))) {
                if (writtenFrames > 0) {
                    AutoMutex lock(mLock);
                    mFramesWritten += writtenFrames;
                }
                // FIXME bug 25195759
                return 1000000;
            }