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

Side by Side Diff: media/filters/audio_file_reader.h

Issue 10869085: Update FFmpegAudioDecoder to support multi-frame packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Fix WebAudio. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_AUDIO_FILE_READER_H_ 5 #ifndef MEDIA_FILTERS_AUDIO_FILE_READER_H_
6 #define MEDIA_FILTERS_AUDIO_FILE_READER_H_ 6 #define MEDIA_FILTERS_AUDIO_FILE_READER_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "media/filters/ffmpeg_glue.h" 9 #include "media/filters/ffmpeg_glue.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // These methods can be called once Open() has been called. 43 // These methods can be called once Open() has been called.
44 int channels() const; 44 int channels() const;
45 int sample_rate() const; 45 int sample_rate() const;
46 base::TimeDelta duration() const; 46 base::TimeDelta duration() const;
47 int64 number_of_frames() const; 47 int64 number_of_frames() const;
48 48
49 private: 49 private:
50 FFmpegURLProtocol* protocol_; 50 FFmpegURLProtocol* protocol_;
51 AVFormatContext* format_context_; 51 AVFormatContext* format_context_;
52 AVCodecContext* codec_context_; 52 AVCodecContext* codec_context_;
53 int stream_index_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(AudioFileReader); 55 DISALLOW_COPY_AND_ASSIGN(AudioFileReader);
55 }; 56 };
56 57
57 } // namespace media 58 } // namespace media
58 59
59 #endif // MEDIA_FILTERS_AUDIO_FILE_READER_H_ 60 #endif // MEDIA_FILTERS_AUDIO_FILE_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698