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

Commit 9d6a94c9 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I6c1e91c246618b3fabdd8e2f6569f25f54f5782c
parents 15b91adc d7e271fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1046,6 +1046,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