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

Unified Diff: media/base/multi_channel_resampler.cc

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.cc
diff --git a/media/base/multi_channel_resampler.cc b/media/base/multi_channel_resampler.cc
index 960a212e9f8f6f617f0ea6b383da083bd977ec9d..b8df97d66c39d391e0e0187c7ac04d4da3e07501 100644
--- a/media/base/multi_channel_resampler.cc
+++ b/media/base/multi_channel_resampler.cc
@@ -94,4 +94,10 @@ void MultiChannelResampler::ProvideInput(int channel, float* destination,
}
}
+void MultiChannelResampler::Flush() {
+ last_frame_count_ = 0;
+ for (size_t i = 0; i < resamplers_.size(); ++i)
+ resamplers_[i]->Flush();
+}
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698