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

Unified Diff: media/base/fake_audio_renderer_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/base/fake_audio_renderer_sink.h ('k') | media/base/silent_sink_suspender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_audio_renderer_sink.cc
diff --git a/media/base/fake_audio_renderer_sink.cc b/media/base/fake_audio_renderer_sink.cc
index f21eb71c2b9bb8e7215382a97d179e2e4886e753..aec032508585d26c5677bf2084c235213c4ef3d7 100644
--- a/media/base/fake_audio_renderer_sink.cc
+++ b/media/base/fake_audio_renderer_sink.cc
@@ -75,12 +75,12 @@ bool FakeAudioRendererSink::CurrentThreadIsRenderingThread() {
}
bool FakeAudioRendererSink::Render(AudioBus* dest,
- uint32_t frames_delayed,
+ base::TimeDelta delay,
int* frames_written) {
if (state_ != kPlaying)
return false;
- *frames_written = callback_->Render(dest, frames_delayed, 0);
+ *frames_written = callback_->Render(delay, base::TimeTicks::Now(), 0, dest);
return true;
}
« no previous file with comments | « media/base/fake_audio_renderer_sink.h ('k') | media/base/silent_sink_suspender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698