| 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..b920c9eb423dac1e29cea17bd2f4ac6bb4f9c781 100644
|
| --- a/media/filters/audio_file_reader.h
|
| +++ b/media/filters/audio_file_reader.h
|
| @@ -38,6 +38,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().
|
| @@ -47,6 +51,8 @@ class MEDIA_EXPORT AudioFileReader {
|
| // <= audio_bus->frames()
|
| int Read(AudioBus* audio_bus);
|
|
|
| + std::unique_ptr<AudioBus> StreamingRead();
|
| +
|
| // These methods can be called once Open() has been called.
|
| int channels() const { return channels_; }
|
| int sample_rate() const { return sample_rate_; }
|
|
|