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

Commit f2498667 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Advance client to match server position when preparing buffer for starting." into main

parents 93eb398d b5fd28ff
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -108,6 +108,10 @@ void AudioStreamInternalPlay::prepareBuffersForStart() {
    mFlowGraph.reset();
    // Prevent stale data from being played.
    mAudioEndpoint->eraseDataMemory();
    // All data has been erased. To avoid mixer for the shared stream use stale
    // counters, which may cause the service side thinking stream starts flowing before
    // the client actually writes data, advance the client to match server position.
    advanceClientToMatchServerPosition(0 /*serverMargin*/);
}

void AudioStreamInternalPlay::prepareBuffersForStop() {