summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/audioflinger/FastMixer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp
index d8bed40..3bb7b44 100644
--- a/services/audioflinger/FastMixer.cpp
+++ b/services/audioflinger/FastMixer.cpp
@@ -483,7 +483,10 @@ bool FastMixer::threadLoop()
(int) sec, nsec / 1000000L);
dumpState->mOverruns++;
}
- sleepNs = periodNs - overrunNs;
+ // Code for non blocking audio HAL. Sleep time must be tuned to allow
+ // catching up after an underrun
+ // sleepNs = periodNs - overrunNs;
+ sleepNs = -1;
} else {
sleepNs = -1;
ignoreNextOverrun = false;