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

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

Issue 2420983002: AudioParams with automations must process timelines (Closed)
Patch Set: Use kRenderQuantumFrames. Created 4 years, 1 month 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/DelayProcessor.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
index 201085e2b40f21e866cb5f6088c05d46901c4f6d..838d26a0e02d27ab290da525040c48976c77671b 100644
--- a/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DelayProcessor.cpp
@@ -25,6 +25,7 @@
#include "modules/webaudio/DelayDSPKernel.h"
#include "modules/webaudio/DelayProcessor.h"
+#include "platform/audio/AudioUtilities.h"
#include "wtf/PtrUtil.h"
#include <memory>
@@ -47,4 +48,12 @@ std::unique_ptr<AudioDSPKernel> DelayProcessor::createKernel() {
return wrapUnique(new DelayDSPKernel(this));
}
+void DelayProcessor::processAudioParams(size_t framesToProcess) {
+ DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames);
+
+ float values[AudioUtilities::kRenderQuantumFrames];
+
+ m_delayTime->calculateSampleAccurateValues(values, framesToProcess);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698