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

Commit 050501d1 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix AudioTrack::flush()

It was only flushing at a surface level, and even then only the first time
the server observed the client's flush request.  Now it flushes at a
deeper level, but there may be even deeper device-specific flushing.

Bug: 9770947
Change-Id: I687cc3410ff9e5e5d4a5dcb9e3b129501e53d247
parent 132a4fb8
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;
        }