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

Commit b1679237 authored by Brian Lindahl's avatar Brian Lindahl Committed by Automerger Merge Worker
Browse files

Merge "AudioFlinger: Fix timestamp advancing interval constant" into main am:...

Merge "AudioFlinger: Fix timestamp advancing interval constant" into main am: 75ffce50 am: 9b62124f

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2886474



Change-Id: Ib4cc9c853178785a3ff13e5e785f94b269161d2a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5e9c6d3a 9b62124f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static const nsecs_t kDirectMinSleepTimeUs = 10000;
// Minimum amount of time between checking to see if the timestamp is advancing
// for underrun detection. If we check too frequently, we may not detect a
// timestamp update and will falsely detect underrun.
static const nsecs_t kMinimumTimeBetweenTimestampChecksNs = 150 /* ms */ * 1000;
static constexpr nsecs_t kMinimumTimeBetweenTimestampChecksNs = 150 /* ms */ * 1'000'000;

// The universal constant for ubiquitous 20ms value. The value of 20ms seems to provide a good
// balance between power consumption and latency, and allows threads to be scheduled reliably