Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Unified Diff: media/base/multi_channel_resampler.h

Issue 13741004: Varispeed support for SincResampler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Skip equivalent ratios. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/multi_channel_resampler.cc » ('j') | media/base/sinc_resampler_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/multi_channel_resampler.h
diff --git a/media/base/multi_channel_resampler.h b/media/base/multi_channel_resampler.h
index 6dd565b1b93a8ae17002db50c9f90695a6f0cba3..549ddea817f9c6c52455f4ddaca467b9f681de77 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.
« no previous file with comments | « no previous file | media/base/multi_channel_resampler.cc » ('j') | media/base/sinc_resampler_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698