Commit f5595a3e authored by Bryan Clark's avatar Bryan Clark Committed by Commit Bot

Update target write period to 20ms in the desktop mixer.

This is analogous to the hardcoded value in the mixer used by the real
chromecast.

Bug: b/173016177
Change-Id: Ia1d2e779fe1ae74ee7cf824cabb4b1e18adfdc7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538485Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
Commit-Queue: Kenneth MacKay <kmackay@chromium.org>
Auto-Submit: Bryan Clark <bryanclark@google.com>
Cr-Commit-Position: refs/heads/master@{#827570}
parent 6075df5b
...@@ -14,7 +14,7 @@ namespace chromecast { ...@@ -14,7 +14,7 @@ namespace chromecast {
namespace media { namespace media {
constexpr base::TimeDelta kTargetWritePeriod = constexpr base::TimeDelta kTargetWritePeriod =
base::TimeDelta::FromMilliseconds(10); base::TimeDelta::FromMilliseconds(20);
bool MixerOutputStreamDesktop::Start(int requested_sample_rate, int channels) { bool MixerOutputStreamDesktop::Start(int requested_sample_rate, int channels) {
sample_rate_ = requested_sample_rate; sample_rate_ = requested_sample_rate;
......
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