DescriptionSet audio_sync_reader timeout as half buffer duration on ChromeOS
Set audio_sync_reader timeout as half buffer duration instead of fixed
20ms.
When system is too busy and renderer can not prepare enough data,
audio_sync_reader will timeout and fill zeros. Chrome replies the fetch
request in time so CRAS does not see underrun. User will hear silence
instead of annoying pop noise.
BUG=b:36119859
TEST=On kevin, play youtube with stressapptest -M 100 -m 6 -s 3600. Hear
silence instead of pop noise. Check there is no underrun in CRAS audio
thread log.
Review-Url: https://codereview.chromium.org/2760243002
Cr-Commit-Position: refs/heads/master@{#460321}
Committed: https://chromium.googlesource.com/chromium/src/+/36527589aedb56b1696c30f4b548b9d3a319fdfc
Patch Set 1 #
Messages
Total messages: 12 (5 generated)
|