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

Unified Diff: media/base/sinc_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/sinc_resampler.h
diff --git a/media/base/sinc_resampler.h b/media/base/sinc_resampler.h
index 029a38a857dd466efddd4ca8faf97a783019ec8f..854dfba4bcc434dccba9c1f9cc2e2053f1003e1b 100644
--- a/media/base/sinc_resampler.h
+++ b/media/base/sinc_resampler.h
@@ -35,7 +35,11 @@ class MEDIA_EXPORT SincResampler {
// single call to |read_cb_| for more data.
int ChunkSize();
+ // Flush all buffered data and reset internal indexes.
+ void Flush();
+
private:
+ FRIEND_TEST_ALL_PREFIXES(SincResamplerTest, Flush);
FRIEND_TEST_ALL_PREFIXES(SincResamplerTest, Convolve);
FRIEND_TEST_ALL_PREFIXES(SincResamplerTest, ConvolveBenchmark);

Powered by Google App Engine
This is Rietveld 408576698