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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

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.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.h
diff --git a/media/filters/ffmpeg_audio_decoder.h b/media/filters/ffmpeg_audio_decoder.h
index 1025083598c29fba952380f309024c7c301a50cf..e92a8517fcf74d4f714bc3fcac6222e3ae71617a 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -21,8 +21,10 @@ class MEDIA_EXPORT FFmpegAudioDecoder
virtual ~FFmpegAudioDecoder();
// AudioDecoder implementation.
- virtual AudioDecoderConfig config();
virtual void ProduceAudioSamples(scoped_refptr<Buffer> output);
+ virtual int bits_per_channel();
+ virtual ChannelLayout channel_layout();
+ virtual int sample_rate();
protected:
virtual void DoInitialize(DemuxerStream* demuxer_stream, bool* success,
@@ -41,7 +43,10 @@ class MEDIA_EXPORT FFmpegAudioDecoder
// is initialized in OnInitialize().
AVCodecContext* codec_context_;
- AudioDecoderConfig config_;
+ // Decoded audio format.
+ int bits_per_channel_;
+ ChannelLayout channel_layout_;
+ int sample_rate_;
// Estimated timestamp for next packet. Useful for packets without timestamps.
base::TimeDelta estimated_next_timestamp_;
« no previous file with comments | « media/filters/audio_renderer_impl.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698