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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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
Index: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
index 78eeb8ced6c5b85f712aabcab8f7e35e8b57d497..dba1616c8ff031c0c3a2683e303d11f635c93ee4 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
@@ -46,7 +46,8 @@ AudioDestinationHandler::~AudioDestinationHandler() {
void AudioDestinationHandler::render(AudioBus* sourceBus,
AudioBus* destinationBus,
- size_t numberOfFrames) {
+ size_t numberOfFrames,
+ const AudioIOPosition& outputPosition) {
// We don't want denormals slowing down any of the audio processing
// since they can very seriously hurt performance. This will take care of all
// AudioNodes because they all process within this scope.
@@ -74,7 +75,7 @@ void AudioDestinationHandler::render(AudioBus* sourceBus,
// Let the context take care of any business at the start of each render
// quantum.
- context()->handlePreRenderTasks();
+ context()->handlePreRenderTasks(outputPosition);
// Prepare the local audio input provider for this render quantum.
if (sourceBus)

Powered by Google App Engine
This is Rietveld 408576698