diff options
author | Torne (Richard Coles) <torne@google.com> | 2013-03-28 15:31:22 +0000 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2013-03-28 15:31:22 +0000 |
commit | 2a99a7e74a7f215066514fe81d2bfa6639d9eddd (patch) | |
tree | 7c2d04841fcd599fd83b0f0bb1100e1c89a35bae /media/base/multi_channel_resampler.h | |
parent | 61c449bbbb53310a8c041d8cefdd6b01a126cc7e (diff) | |
download | chromium_org-2a99a7e74a7f215066514fe81d2bfa6639d9eddd.tar.gz |
Merge from Chromium at DEPS revision r190564
This commit was generated by merge_to_master.py.
Change-Id: Icadecbce29854b8fa25fd335b2c1949b5ca5d170
Diffstat (limited to 'media/base/multi_channel_resampler.h')
-rw-r--r-- | media/base/multi_channel_resampler.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/media/base/multi_channel_resampler.h b/media/base/multi_channel_resampler.h index 748bb47d72..6dd565b1b9 100644 --- a/media/base/multi_channel_resampler.h +++ b/media/base/multi_channel_resampler.h @@ -21,8 +21,9 @@ class MEDIA_EXPORT MultiChannelResampler { public: // Callback type for providing more data into the resampler. Expects AudioBus // to be completely filled with data upon return; zero padded if not enough - // frames are available to satisfy the request. - typedef base::Callback<void(AudioBus* audio_bus)> ReadCB; + // frames are available to satisfy the request. |frame_delay| is the number + // of output frames already processed and can be used to estimate delay. + typedef base::Callback<void(int frame_delay, AudioBus* audio_bus)> ReadCB; // Constructs a MultiChannelResampler with the specified |read_cb|, which is // used to acquire audio data for resampling. |io_sample_rate_ratio| is the @@ -56,6 +57,12 @@ class MEDIA_EXPORT MultiChannelResampler { scoped_ptr<AudioBus> resampler_audio_bus_; scoped_ptr<AudioBus> wrapped_resampler_audio_bus_; std::vector<float*> resampler_audio_data_; + + // The number of output frames that have successfully been processed during + // the current Resample() call. + int output_frames_ready_; + + DISALLOW_COPY_AND_ASSIGN(MultiChannelResampler); }; } // namespace media |