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

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

Issue 2437863004: Make more media APIs aware of |delay| and |delay_timestamp| (Closed)
Patch Set: Created 4 years, 2 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/renderer_webaudiodevice_impl.cc
diff --git a/content/renderer/media/renderer_webaudiodevice_impl.cc b/content/renderer/media/renderer_webaudiodevice_impl.cc
index fc698e4d6a3fb43a79d3e4e844bf4b6344285b4e..075d1643e5028cf248aa9bf104dc2d9991ce4c25 100644
--- a/content/renderer/media/renderer_webaudiodevice_impl.cc
+++ b/content/renderer/media/renderer_webaudiodevice_impl.cc
@@ -15,6 +15,7 @@
#include "content/renderer/media/audio_device_factory.h"
#include "content/renderer/render_frame_impl.h"
#include "content/renderer/render_thread_impl.h"
+#include "media/base/audio_timestamp_helper.h"
#include "media/base/silent_sink_suspender.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebView.h"
@@ -101,7 +102,8 @@ double RendererWebAudioDeviceImpl::sampleRate() {
}
int RendererWebAudioDeviceImpl::Render(media::AudioBus* dest,
- uint32_t frames_delayed,
+ base::TimeDelta delay,
+ base::TimeTicks delay_timestamp,
uint32_t frames_skipped) {
// Wrap the output pointers using WebVector.
WebVector<float*> web_audio_dest_data(static_cast<size_t>(dest->channels()));

Powered by Google App Engine
This is Rietveld 408576698