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

Commit 999f0e88 authored by Sampath Shetty's avatar Sampath Shetty Committed by Sampath Shetty
Browse files

Reset direct output thread timestamp on flush

In order to avoid subsequent tracks using stale kernel timestamps while
computing track timestamps, clear the timestamp info upon flush.

Change-Id: I2b8af33b287aee986871b6415b89f9c53d92f3a6
parent 733c7287
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6013,6 +6013,7 @@ void AudioFlinger::DirectOutputThread::flushHw_l()
    mHwPaused = false;
    mFlushPending = false;
    mTimestampVerifier.discontinuity(); // DIRECT and OFFLOADED flush resets frame count.
    mTimestamp.clear();
}

int64_t AudioFlinger::DirectOutputThread::computeWaitTimeNs_l() const {