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

Unified Diff: media/base/multi_channel_resampler.cc

Issue 1211203006: Fixes issue where Web Speech API drops a frame every 5.1 seconds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 5 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 | « media/base/multi_channel_resampler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/multi_channel_resampler.cc
diff --git a/media/base/multi_channel_resampler.cc b/media/base/multi_channel_resampler.cc
index b0ab88d6820cb7a1ca1c5fc42c5f51d6a52e244c..4ec44d8ede906fe5e41b51b7c6a0e9a6df87a8fe 100644
--- a/media/base/multi_channel_resampler.cc
+++ b/media/base/multi_channel_resampler.cc
@@ -119,5 +119,10 @@ double MultiChannelResampler::BufferedFrames() const {
return resamplers_[0]->BufferedFrames();
}
+void MultiChannelResampler::PrimeWithSilence() {
+ DCHECK(!resamplers_.empty());
+ for (size_t i = 0; i < resamplers_.size(); ++i)
+ resamplers_[i]->PrimeWithSilence();
+}
} // namespace media
« no previous file with comments | « media/base/multi_channel_resampler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698