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

Commit b471d313 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 am: b1679237

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



Change-Id: I19a7bbd49d4e56e37b2e49fddf1596bfefec7a69
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6baf651a b1679237
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