media: Increase the default audio buffer size for encrypted streams
This partially reverts commit 251e255f. After mojo CDM was enabled by default, with the performance gain, we changed the audio buffer size back to the original value at 200ms, which is the same as the size as clear playback. Recently, we found cases where we still have performance issues for encrypted audio. Given the fact that users are super sensitive to audio glitches, and encrypted playback always has worse performance than clear playback, it makes sense to use a larger buffer size. This CL changes the audio buffer size back to 500ms. It may increase the start-to-play time slightly, but should help reduce rebuffers during playback. Bug: 718161,879970 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I41909d3fc3356df119b21fe720ebe8cafad206a5 Reviewed-on: https://chromium-review.googlesource.com/c/1297329Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#602165}
Showing
Please register or sign in to comment