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

Unified Diff: media/filters/audio_file_reader.h

Issue 10871051: Convert WebAudio file handlers to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 8 years, 4 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
Index: media/filters/audio_file_reader.h
diff --git a/media/filters/audio_file_reader.h b/media/filters/audio_file_reader.h
index 6a3fd89ab913c2bf045bf411c7e2e153a76052ba..0e579493c1dcf934405118c0b8f2d28ab7273a49 100644
--- a/media/filters/audio_file_reader.h
+++ b/media/filters/audio_file_reader.h
@@ -8,7 +8,6 @@
#include <vector>
#include "media/filters/ffmpeg_glue.h"
-struct AVCodec;
struct AVCodecContext;
struct AVFormatContext;
@@ -16,6 +15,7 @@ namespace base { class TimeDelta; }
namespace media {
+class AudioBus;
class FFmpegURLProtocol;
class MEDIA_EXPORT AudioFileReader {
@@ -37,7 +37,7 @@ class MEDIA_EXPORT AudioFileReader {
// The audio data will be decoded as floating-point linear PCM with
// a nominal range of -1.0 -> +1.0.
// Returns |true| on success.
- bool Read(const std::vector<float*>& audio_data, size_t number_of_frames);
+ bool Read(AudioBus* audio_bus);
// These methods can be called once Open() has been called.
int channels() const;
@@ -49,7 +49,6 @@ class MEDIA_EXPORT AudioFileReader {
FFmpegURLProtocol* protocol_;
AVFormatContext* format_context_;
AVCodecContext* codec_context_;
- AVCodec* codec_;
DISALLOW_COPY_AND_ASSIGN(AudioFileReader);
};

Powered by Google App Engine
This is Rietveld 408576698