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

Unified Diff: media/audio/audio_output_stream_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_device_unittest.cc ('k') | media/audio/clockless_audio_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_stream_sink.cc
diff --git a/media/audio/audio_output_stream_sink.cc b/media/audio/audio_output_stream_sink.cc
index 5bb2f8e39d984679930a7e451da21e75a36d286e..17ad0735397ff0c3a2c0a4bdb4fabd0a99c76c6f 100644
--- a/media/audio/audio_output_stream_sink.cc
+++ b/media/audio/audio_output_stream_sink.cc
@@ -85,7 +85,7 @@ bool AudioOutputStreamSink::CurrentThreadIsRenderingThread() {
}
int AudioOutputStreamSink::OnMoreData(base::TimeDelta delay,
- base::TimeTicks /* delay_timestamp */,
+ base::TimeTicks delay_timestamp,
int prior_frames_skipped,
AudioBus* dest) {
// Note: Runs on the audio thread created by the OS.
@@ -93,11 +93,8 @@ int AudioOutputStreamSink::OnMoreData(base::TimeDelta delay,
if (!active_render_callback_)
return 0;
- uint32_t frames_delayed =
- AudioTimestampHelper::TimeToFrames(delay, active_params_.sample_rate());
-
- return active_render_callback_->Render(dest, frames_delayed,
- prior_frames_skipped);
+ return active_render_callback_->Render(delay, delay_timestamp,
+ prior_frames_skipped, dest);
}
void AudioOutputStreamSink::OnError(AudioOutputStream* stream) {
« no previous file with comments | « media/audio/audio_output_device_unittest.cc ('k') | media/audio/clockless_audio_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698