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

Unified Diff: media/audio/fake_audio_input_stream.cc

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix Mac CQ errors. Created 4 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/audio/fake_audio_input_stream.cc
diff --git a/media/audio/fake_audio_input_stream.cc b/media/audio/fake_audio_input_stream.cc
index c70f5c02e4e458ef4f2b08fa75cbff440c19b3b0..52d7218d2870da974913803fe97a1989f290f4e3 100644
--- a/media/audio/fake_audio_input_stream.cc
+++ b/media/audio/fake_audio_input_stream.cc
@@ -99,8 +99,8 @@ void FakeAudioInputStream::ReadAudioFromSource() {
if (!audio_source_)
audio_source_ = ChooseSource();
- const int kNoDelay = 0;
- audio_source_->OnMoreData(audio_bus_.get(), kNoDelay, 0);
+ audio_source_->OnMoreData(base::TimeDelta(), base::TimeTicks::Now(), 0,
+ audio_bus_.get());
callback_->OnData(this, audio_bus_.get(), 0, 1.0);
}

Powered by Google App Engine
This is Rietveld 408576698