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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp

Issue 2420983002: AudioParams with automations must process timelines (Closed)
Patch Set: Use kRenderQuantumFrames. Created 4 years, 1 month 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/DelayDSPKernel.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp b/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
index cc63f89fef8c37e16148f7303e42a5c9c4ff116b..389162351e6bb3061b3d69e80b0f29e4de8752d7 100644
--- a/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
@@ -67,4 +67,13 @@ double DelayDSPKernel::delayTime(float) {
return getDelayProcessor()->delayTime().finalValue();
}
+void DelayDSPKernel::processAudioParams(size_t framesToProcess) {
+ DCHECK_LE(framesToProcess, AudioUtilities::kRenderQuantumFrames);
+
+ float values[AudioUtilities::kRenderQuantumFrames];
+
+ getDelayProcessor()->delayTime().calculateSampleAccurateValues(
+ values, framesToProcess);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698