summaryrefslogtreecommitdiff
path: root/media/base/multi_channel_resampler.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/multi_channel_resampler.h')
-rw-r--r--media/base/multi_channel_resampler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/base/multi_channel_resampler.h b/media/base/multi_channel_resampler.h
index 148cb9da78..ee3222a917 100644
--- a/media/base/multi_channel_resampler.h
+++ b/media/base/multi_channel_resampler.h
@@ -47,6 +47,10 @@ class MEDIA_EXPORT MultiChannelResampler {
// Resample() is in progress.
void SetRatio(double io_sample_rate_ratio);
+ // The maximum size in frames that guarantees Resample() will only make a
+ // single call to |read_cb_| for more data.
+ int ChunkSize() const;
+
private:
// SincResampler::ReadCB implementation. ProvideInput() will be called for
// each channel (in channel order) as SincResampler needs more data.