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

Commit e10d7a6b authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Fix AudioTrack cannot resume after underrun" into sc-dev

parents 8f2f4e91 576f1361
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1065,6 +1065,8 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev
            reset();
        }

        // clear mPauseHwPending because of pause (and possibly flush) during underrun.
        mPauseHwPending = false;
        if (state == PAUSED || state == PAUSING) {
            if (mResumeToStopping) {
                // happened we need to resume to STOPPING_1