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 |