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

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

Powered by Google App Engine
This is Rietveld 408576698