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

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

Issue 2420983002: AudioParams with automations must process timelines (Closed)
Patch Set: Fix paths. Created 3 years, 11 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: 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 56c2ae541cb3b7358f576a81066bcbecef60d192..1d6e508517b1f4069b6064045a36d6dd60562747 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 WTF::makeUnique<DelayDSPKernel>(this);
}
+void DelayProcessor::processOnlyAudioParams(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