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

Unified Diff: media/filters/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 | « media/filters/audio_renderer_impl.h ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.cc
diff --git a/media/filters/audio_renderer_impl.cc b/media/filters/audio_renderer_impl.cc
index ae9199329a86dfa9b9a9c80ef21fce910b30f1f0..84fb6456c1faa44640619b93553198b1815c8a77 100644
--- a/media/filters/audio_renderer_impl.cc
+++ b/media/filters/audio_renderer_impl.cc
@@ -72,9 +72,11 @@ void AudioRendererImpl::OnError(AudioOutputStream* stream, int code) {
NOTIMPLEMENTED();
}
-bool AudioRendererImpl::OnInitialize(const AudioDecoderConfig& config) {
- AudioParameters params(config);
- params.samples_per_packet = kSamplesPerBuffer;
+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 | « media/filters/audio_renderer_impl.h ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698