Skip to content

Commit

Permalink
Update target write period to 20ms in the desktop mixer.
Browse files Browse the repository at this point in the history
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/+/2538485
Reviewed-by: Kenneth 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}
  • Loading branch information
Bryan Clark authored and Commit Bot committed Nov 14, 2020
1 parent 6075df5 commit f5595a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace chromecast {
namespace media {

constexpr base::TimeDelta kTargetWritePeriod =
base::TimeDelta::FromMilliseconds(10);
base::TimeDelta::FromMilliseconds(20);

bool MixerOutputStreamDesktop::Start(int requested_sample_rate, int channels) {
sample_rate_ = requested_sample_rate;
Expand Down

0 comments on commit f5595a3

Please sign in to comment.