Index: third_party/WebKit/Source/modules/webaudio/GainNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/GainNode.cpp b/third_party/WebKit/Source/modules/webaudio/GainNode.cpp |
index fcb2410d95958e575ec171eb3ae76576bbb8e44f..7e1873afdfab009aa961ed0ae09742e036e347cf 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/GainNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/GainNode.cpp |
@@ -28,6 +28,7 @@ |
#include "modules/webaudio/AudioNodeOutput.h" |
#include "modules/webaudio/GainOptions.h" |
#include "platform/audio/AudioBus.h" |
+#include "platform/audio/AudioUtilities.h" |
namespace blink { |
@@ -95,6 +96,15 @@ void GainHandler::process(size_t framesToProcess) { |
} |
} |
+void GainHandler::processOnlyAudioParams(size_t framesToProcess) { |
+ DCHECK(context()->isAudioThread()); |
+ DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames); |
+ |
+ float values[AudioUtilities::kRenderQuantumFrames]; |
+ |
+ m_gain->calculateSampleAccurateValues(values, framesToProcess); |
+} |
+ |
// FIXME: this can go away when we do mixing with gain directly in summing |
// junction of AudioNodeInput |
// |