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

Commit 3d2a89be authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 13017112 from f2498667 to 25Q2-release

Change-Id: I9bac2c55ac7527b41f589394571c899581d241b9
parents 56e61323 f2498667
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -108,6 +108,10 @@ void AudioStreamInternalPlay::prepareBuffersForStart() {
    mFlowGraph.reset();
    mFlowGraph.reset();
    // Prevent stale data from being played.
    // Prevent stale data from being played.
    mAudioEndpoint->eraseDataMemory();
    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() {
void AudioStreamInternalPlay::prepareBuffersForStop() {