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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PannerNode.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/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;
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/PannerNode.h ('k') | third_party/WebKit/Source/modules/webaudio/StereoPannerNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698