summaryrefslogtreecommitdiffstats
path: root/media/libmedia/IStreamSource.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-11-22 18:50:29 -0800
committerEric Laurent <elaurent@google.com>2011-11-22 18:50:29 -0800
commit7cafbb32999049873d4746ba83bd20c88abe6ce6 (patch)
treec251630c9b785aa555c7093b2691fe1f75b7a6dc /media/libmedia/IStreamSource.cpp
parente933cb5ae546d023ab756391a135c170874e7901 (diff)
downloadframeworks_av-7cafbb32999049873d4746ba83bd20c88abe6ce6.zip
frameworks_av-7cafbb32999049873d4746ba83bd20c88abe6ce6.tar.gz
frameworks_av-7cafbb32999049873d4746ba83bd20c88abe6ce6.tar.bz2
audioflinger: reduce sleep time to avoid underrun
Progressively reduce the sleep time applied in MixerThread::threadLoop() in case of consecutive application underruns to avoid starving the audio HAL. As the default sleep time is longer than the duration of an audio buffer we ended up writing less data than needed by the audio HAL if the condition persisted. Issue 5553055. Change-Id: I2b23ee79c032efa945025db228beaecd1e07a2e5
Diffstat (limited to 'media/libmedia/IStreamSource.cpp')
0 files changed, 0 insertions, 0 deletions