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

Unified Diff: content/renderer/media/audio_renderer_impl.cc

Issue 7796033: Replace AudioDecoderConfig with simple accessors on AudioDecoder. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 years, 3 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 | « content/renderer/media/audio_renderer_impl.h ('k') | media/audio/audio_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_renderer_impl.cc
diff --git a/content/renderer/media/audio_renderer_impl.cc b/content/renderer/media/audio_renderer_impl.cc
index 899bf4438c68d8fd7503d041f30e056b83a337c9..7740c40f2c1a96961667c8af7bc045e23bdb871a 100644
--- a/content/renderer/media/audio_renderer_impl.cc
+++ b/content/renderer/media/audio_renderer_impl.cc
@@ -83,9 +83,11 @@ void AudioRendererImpl::UpdateEarliestEndTime(int bytes_filled,
}
}
-bool AudioRendererImpl::OnInitialize(const media::AudioDecoderConfig& config) {
- AudioParameters params(config);
- params.format = AudioParameters::AUDIO_PCM_LINEAR;
+bool AudioRendererImpl::OnInitialize(int bits_per_channel,
+ ChannelLayout channel_layout,
+ int sample_rate) {
+ AudioParameters params(AudioParameters::AUDIO_PCM_LINEAR, channel_layout,
+ sample_rate, bits_per_channel, kSamplesPerBuffer);
bytes_per_second_ = params.GetBytesPerSecond();
« no previous file with comments | « content/renderer/media/audio_renderer_impl.h ('k') | media/audio/audio_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698