Index: third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp |
index 64c47bf1562d69efea630d2aa7af21a8e75393e7..5288cebdbe5e7a3b7a6ca9cc45b3e5edf9797b99 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/BiquadProcessor.cpp |
@@ -25,6 +25,7 @@ |
#include "modules/webaudio/BiquadDSPKernel.h" |
#include "modules/webaudio/BiquadProcessor.h" |
+#include "platform/audio/AudioUtilities.h" |
#include "wtf/PtrUtil.h" |
#include <memory> |
@@ -118,6 +119,17 @@ void BiquadProcessor::process(const AudioBus* source, |
framesToProcess); |
} |
+void BiquadProcessor::processOnlyAudioParams(size_t framesToProcess) { |
+ DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames); |
+ |
+ float values[AudioUtilities::kRenderQuantumFrames]; |
+ |
+ m_parameter1->calculateSampleAccurateValues(values, framesToProcess); |
+ m_parameter2->calculateSampleAccurateValues(values, framesToProcess); |
+ m_parameter3->calculateSampleAccurateValues(values, framesToProcess); |
+ m_parameter4->calculateSampleAccurateValues(values, framesToProcess); |
+} |
+ |
void BiquadProcessor::setType(FilterType type) { |
if (type != m_type) { |
m_type = type; |