commit | f1f5fc85b07fe74cfa12789fefa126cac7a499a9 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Nov 22 18:50:29 2011 -0800 |
committer | Eric Laurent <elaurent@google.com> | Tue Nov 22 18:50:29 2011 -0800 |
tree | 747ded89a6c7366e2f809ecd8e2e43d5c9edcbc4 | |
parent | 7257a32b9ac7cbbb47659ed7bea4ab47e74ac3ec [diff] |
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