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

Commit 303d783c authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Fix AudioTrack::flush()"

parents 1c0e7a9c 050501d1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -388,6 +388,8 @@ status_t ServerProxy::obtainBuffer(Buffer* buffer)
        if (flush != mFlush) {
            front = rear;
            mFlush = flush;
            // effectively obtain then release whatever is in the buffer
            android_atomic_release_store(rear, &cblk->u.mStreaming.mFront);
        } else {
            front = cblk->u.mStreaming.mFront;
        }