summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-08-08 15:11:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-08 15:11:50 -0700
commite75640c4b06a5715622eeffd8d204f811284fd8c (patch)
treeca1f546b5da34856c906a736c0eb7942bf9b3b22
parentf768ada0f9eeaaaf9847da7a432375aed4d95828 (diff)
parent638f936d4dd0d4afdc952988ac6b6a9dcbb577e7 (diff)
downloadframeworks_av-e75640c4b06a5715622eeffd8d204f811284fd8c.zip
frameworks_av-e75640c4b06a5715622eeffd8d204f811284fd8c.tar.gz
frameworks_av-e75640c4b06a5715622eeffd8d204f811284fd8c.tar.bz2
am 638f936d: am 0d27c65d: Tune the overrun correction
* commit '638f936d4dd0d4afdc952988ac6b6a9dcbb577e7': Tune the overrun correction
-rw-r--r--services/audioflinger/FastMixer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp
index b89bf81..fbcc11a 100644
--- a/services/audioflinger/FastMixer.cpp
+++ b/services/audioflinger/FastMixer.cpp
@@ -222,8 +222,8 @@ bool FastMixer::threadLoop()
mixBuffer = new short[frameCount * 2];
periodNs = (frameCount * 1000000000LL) / sampleRate; // 1.00
underrunNs = (frameCount * 1750000000LL) / sampleRate; // 1.75
- overrunNs = (frameCount * 250000000LL) / sampleRate; // 0.25
- forceNs = (frameCount * 750000000LL) / sampleRate; // 0.75
+ overrunNs = (frameCount * 500000000LL) / sampleRate; // 0.50
+ forceNs = (frameCount * 950000000LL) / sampleRate; // 0.95
warmupNs = (frameCount * 500000000LL) / sampleRate; // 0.50
} else {
periodNs = 0;