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

Unified Diff: media/base/audio_converter.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/audio_converter.h ('k') | media/base/multi_channel_resampler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_converter.cc
diff --git a/media/base/audio_converter.cc b/media/base/audio_converter.cc
index be68ac627fa0d791584580fb628bcb397b42e56e..48686046fd71178ef38416a153c24641c95d96ff 100644
--- a/media/base/audio_converter.cc
+++ b/media/base/audio_converter.cc
@@ -117,6 +117,12 @@ int AudioConverter::ChunkSize() const {
return resampler_->ChunkSize();
}
+void AudioConverter::PrimeWithSilence() {
+ if (resampler_) {
+ resampler_->PrimeWithSilence();
+ }
+}
+
void AudioConverter::ConvertWithDelay(const base::TimeDelta& initial_delay,
AudioBus* dest) {
initial_delay_ = initial_delay;
« no previous file with comments | « media/base/audio_converter.h ('k') | media/base/multi_channel_resampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698