Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc

Issue 2858393002: media: Increase the default audio buffer size for encrypted streams (Closed)
Patch Set: Fix another chromecast usage of AudioRendererAlgorithm Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/cast/test/fake_media_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc
diff --git a/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc b/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc
index c56e6dacc1aba689c32246250ef3c0e23f3e7a79..c07e592d6e6f6c8506e7f2d32ce5449758610445 100644
--- a/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc
+++ b/chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc
@@ -280,10 +280,13 @@ void AudioDecoderAlsa::CreateRateShifter(int samples_per_second) {
rate_shifter_info_.push_back(RateShifterInfo(1.0f));
rate_shifter_.reset(new ::media::AudioRendererAlgorithm());
- rate_shifter_->Initialize(::media::AudioParameters(
- ::media::AudioParameters::AUDIO_PCM_LINEAR,
- ::media::CHANNEL_LAYOUT_STEREO, samples_per_second, kBitsPerSample,
- kDefaultFramesPerBuffer));
+ bool is_encrypted = false;
+ rate_shifter_->Initialize(
+ ::media::AudioParameters(::media::AudioParameters::AUDIO_PCM_LINEAR,
+ ::media::CHANNEL_LAYOUT_STEREO,
+ samples_per_second, kBitsPerSample,
+ kDefaultFramesPerBuffer),
+ is_encrypted);
}
bool AudioDecoderAlsa::SetVolume(float multiplier) {
« no previous file with comments | « no previous file | media/cast/test/fake_media_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698