Commit 24f87b2a authored by Alex Leung's avatar Alex Leung Committed by Commit Bot

[Chromecast] Increase the minimum buffer time padding.

Multizone follower on Android is not working because insufficient time
was given for pushing data to the audio pipeline. This resulted in
cropped audio buffers.

Bug: 117832377
Test: Tested multizone follower on atv and android things
Change-Id: I92e8fbb39fa904fd3b38e4fb28d418d3e4272ac1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1742995Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
Commit-Queue: Alex Leung <alexleung@google.com>
Cr-Commit-Position: refs/heads/master@{#686627}
parent 5cfa33cb
...@@ -135,7 +135,7 @@ class AudioSinkAudioTrackImpl { ...@@ -135,7 +135,7 @@ class AudioSinkAudioTrackImpl {
private static final long MAX_TIME_IGNORING_TSTAMPS_NSECS = SEC_IN_NSEC; private static final long MAX_TIME_IGNORING_TSTAMPS_NSECS = SEC_IN_NSEC;
// Additional padding for minimum buffer time, determined experimentally. // Additional padding for minimum buffer time, determined experimentally.
private static final long MIN_BUFFERED_TIME_PADDING_USEC = ANDROID_AUDIO_PERIOD_SIZE_USEC; private static final long MIN_BUFFERED_TIME_PADDING_USEC = 120000;
private static AudioManager sAudioManager; private static AudioManager sAudioManager;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment