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

Unified Diff: media/base/multi_channel_resampler.h

Issue 10918098: Introduce AudioOutputResampler for browser side resampling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: First draft! Created 8 years, 3 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
Index: media/base/multi_channel_resampler.h
diff --git a/media/base/multi_channel_resampler.h b/media/base/multi_channel_resampler.h
index 6d65075241df18d052a59158c850f843c6bbcbf8..6c2c2d8d3b21a69585db67defb53c928c25bc42f 100644
--- a/media/base/multi_channel_resampler.h
+++ b/media/base/multi_channel_resampler.h
@@ -34,7 +34,12 @@ 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 indexes.
scherkus (not reviewing) 2012/09/07 13:30:17 s/indexes/indicies/ $ git grep -i "indexes" . | w
DaleCurtis 2012/09/10 12:06:24 Done.
+ void Flush();
+
private:
+ friend class MultiChannelResamplerTest;
scherkus (not reviewing) 2012/09/07 13:30:17 hrmm.. friend only for last_frame_count_? I'd eit
DaleCurtis 2012/09/10 12:06:24 Removed.
+
// SincResampler::ReadCB implementation. ProvideInput() will be called for
// each channel (in channel order) as SincResampler needs more data.
void ProvideInput(int channel, float* destination, int frames);

Powered by Google App Engine
This is Rietveld 408576698