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

Commit d7e271fb authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Fix AudioTrack cannot resume after underrun"

parents 11004efa e2cd1dfa
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1046,6 +1046,8 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev
            reset();
            reset();
        }
        }


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