summaryrefslogtreecommitdiffstats
path: root/media/libeffects/visualizer
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-06-04 13:45:29 -0700
committerEric Laurent <elaurent@google.com>2012-06-04 14:27:56 -0700
commitab9071b8d1b375418eb797c9a790da71de644344 (patch)
tree637a5322ed80b9de92433ed9851302e45d78b727 /media/libeffects/visualizer
parent399930859a75d806ce0ef124ac22025ae4ef0549 (diff)
downloadframeworks_av-ab9071b8d1b375418eb797c9a790da71de644344.zip
frameworks_av-ab9071b8d1b375418eb797c9a790da71de644344.tar.gz
frameworks_av-ab9071b8d1b375418eb797c9a790da71de644344.tar.bz2
audioflinger: fix active sleep time calculation.
When an audioTrack underruns, the audioflinger mixer thread sleeps for a certain time to give the app a chance to recover. This time is based on the reported audio HAL latency. Some audio HALs implementing deep buffering have a variable latency and this creates a problem if the sleep time is cached when the output stream is opened and not updated afterwards. This change derives the active sleep time from the mix buffer framecount instead of the latency. This is more conservative but works for variable latency. Bug 6588525. Change-Id: Ia892fc290fe06f836565c3ae15f7a2ce026c88c6
Diffstat (limited to 'media/libeffects/visualizer')
0 files changed, 0 insertions, 0 deletions