Index: media/filters/audio_file_reader.h |
diff --git a/media/filters/audio_file_reader.h b/media/filters/audio_file_reader.h |
index 1e42abd7b018fde25b2d6fce976fa26807de0b63..8bd49d72c1749241f57e841ebe2549035c210a55 100644 |
--- a/media/filters/audio_file_reader.h |
+++ b/media/filters/audio_file_reader.h |
@@ -6,6 +6,7 @@ |
#define MEDIA_FILTERS_AUDIO_FILE_READER_H_ |
#include <memory> |
+#include <vector> |
#include "base/macros.h" |
#include "media/base/audio_codecs.h" |
@@ -38,6 +39,10 @@ class MEDIA_EXPORT AudioFileReader { |
bool Open(); |
void Close(); |
+ // Returns true if (an estimated) duration of the audio data is |
+ // known. Must be called after Open(); |
+ bool HasKnownDuration() const; |
+ |
// After a call to Open(), attempts to fully fill |audio_bus| with decoded |
// audio data. Any unfilled frames will be zeroed out. |
// |audio_data| must be of the same size as channels(). |
@@ -45,7 +50,11 @@ class MEDIA_EXPORT AudioFileReader { |
// a nominal range of -1.0 -> +1.0. |
// Returns the number of sample-frames actually read which will always be |
// <= audio_bus->frames() |
+#if 0 |
int Read(AudioBus* audio_bus); |
+#endif |
+ |
+ int Read(std::vector<std::unique_ptr<AudioBus>>& decodedAudioPackets); |
// These methods can be called once Open() has been called. |
int channels() const { return channels_; } |