Index: third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
index 2282e2a968cc368c9c478386af47b3af5e0fabe5..2e5b6fecb0dd97e93e4cb13d5ad1b54cce93adfc 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp |
@@ -234,6 +234,20 @@ void PannerHandler::processSampleAccurateValues(AudioBus* destination, |
framesToProcess); |
} |
+void PannerHandler::processOnlyAudioParams(size_t framesToProcess) { |
+ float values[AudioUtilities::kRenderQuantumFrames]; |
+ |
+ DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames); |
+ |
+ m_positionX->calculateSampleAccurateValues(values, framesToProcess); |
+ m_positionY->calculateSampleAccurateValues(values, framesToProcess); |
+ m_positionZ->calculateSampleAccurateValues(values, framesToProcess); |
+ |
+ m_orientationX->calculateSampleAccurateValues(values, framesToProcess); |
+ m_orientationY->calculateSampleAccurateValues(values, framesToProcess); |
+ m_orientationZ->calculateSampleAccurateValues(values, framesToProcess); |
+} |
+ |
void PannerHandler::initialize() { |
if (isInitialized()) |
return; |