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

Commit 84bd31ef authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "Fix AudioTrack cannot resume after underrun" am: d7e271fb am: 9d6a94c9

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1708127

Change-Id: Id72d32f9b0e82041d918294ef6db85518ec382d2
parents cd86f981 9d6a94c9
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