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

Unified Diff: content/renderer/media/webrtc_audio_device_impl.cc

Issue 328493003: Pass the elapsed time from VoE to WebRtcAudioRenderer as the current time for the audio/video eleme… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 6 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: content/renderer/media/webrtc_audio_device_impl.cc
===================================================================
--- content/renderer/media/webrtc_audio_device_impl.cc (revision 275847)
+++ content/renderer/media/webrtc_audio_device_impl.cc (working copy)
@@ -179,7 +179,10 @@
&ntp_time_ms);
accumulated_audio_frames += num_audio_frames;
}
-
+ if (elapsed_time_ms >= 0) {
+ renderer_->SetCurrentRenderTime(
no longer working on chromium 2014/06/11 16:55:01 Thanks for the explain. After giving it a second t
Ronghua Wu (Left Chromium) 2014/06/11 17:39:15 Great suggestion. Done.
+ base::TimeDelta::FromMilliseconds(elapsed_time_ms));
+ }
audio_data += bytes_per_10_ms;
}
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_renderer.h » ('j') | content/renderer/media/webrtc_audio_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698