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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 2517503003: Reland: Make more media APIs aware of |delay| and |delay_timestamp| (Closed)
Patch Set: Comments from chcunningham@ and Dale Created 4 years 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/audio/audio_output_stream_sink.cc ('k') | media/audio/null_audio_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/clockless_audio_sink.cc
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc
index d0dd7e94230b1cdd6aab0d0099bbbf295b1049ac..1dc1a12cc3b3d97c7fc0228575a4f3bcb8914af2 100644
--- a/media/audio/clockless_audio_sink.cc
+++ b/media/audio/clockless_audio_sink.cc
@@ -51,7 +51,8 @@ class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate {
void Run() override {
base::TimeTicks start;
while (!stop_event_->IsSignaled()) {
- const int frames_received = callback_->Render(audio_bus_.get(), 0, 0);
+ const int frames_received = callback_->Render(
+ base::TimeDelta(), base::TimeTicks::Now(), 0, audio_bus_.get());
DCHECK_GE(frames_received, 0);
if (audio_hash_)
audio_hash_->Update(audio_bus_.get(), frames_received);
« no previous file with comments | « media/audio/audio_output_stream_sink.cc ('k') | media/audio/null_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698