diff options
author | Torne (Richard Coles) <torne@google.com> | 2013-05-09 18:35:53 +0100 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2013-05-13 13:57:14 +0100 |
commit | c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d (patch) | |
tree | 1dbdbb0624cc869ab25ee7f46971984c6fee3e7a /media/base/multi_channel_resampler.h | |
parent | 2d519ce2457219605d4f472da8d2ffd469796035 (diff) | |
download | chromium_org-c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d.tar.gz |
Merge from Chromium at DEPS revision r198571
This commit was generated by merge_to_master.py.
Change-Id: I951118a03836157090561764dd2627f0add8118f
Diffstat (limited to 'media/base/multi_channel_resampler.h')
-rw-r--r-- | media/base/multi_channel_resampler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/media/base/multi_channel_resampler.h b/media/base/multi_channel_resampler.h index 6dd565b1b9..549ddea817 100644 --- a/media/base/multi_channel_resampler.h +++ b/media/base/multi_channel_resampler.h @@ -35,9 +35,15 @@ class MEDIA_EXPORT MultiChannelResampler { // Resamples |frames| of data from |read_cb_| into AudioBus. void Resample(AudioBus* audio_bus, int frames); - // Flush all buffered data and reset internal indices. + // Flush all buffered data and reset internal indices. Not thread safe, do + // not call while Resample() is in progress. void Flush(); + // Update ratio for all SincResamplers. SetRatio() will cause reconstruction + // of the kernels used for resampling. Not thread safe, do not call while + // Resample() is in progress. + void SetRatio(double io_sample_rate_ratio); + private: // SincResampler::ReadCB implementation. ProvideInput() will be called for // each channel (in channel order) as SincResampler needs more data. |