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

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

Issue 2440583002: Use AudioUtilities::kRenderQuantumFrames everywhere (Closed)
Patch Set: Address review comments 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/ScriptProcessorNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
index d3051e30eb7906de53bda44d8b75e03e8a2f7e84..2cc00986b5a0b7e61232bc9015b1fea76886ff53 100644
--- a/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp
@@ -50,12 +50,12 @@ ScriptProcessorHandler::ScriptProcessorHandler(AudioNode& node,
m_numberOfInputChannels(numberOfInputChannels),
m_numberOfOutputChannels(numberOfOutputChannels),
m_internalInputBus(AudioBus::create(numberOfInputChannels,
- ProcessingSizeInFrames,
+ AudioUtilities::kRenderQuantumFrames,
false)) {
// Regardless of the allowed buffer sizes, we still need to process at the
// granularity of the AudioNode.
- if (m_bufferSize < ProcessingSizeInFrames)
- m_bufferSize = ProcessingSizeInFrames;
+ if (m_bufferSize < AudioUtilities::kRenderQuantumFrames)
+ m_bufferSize = AudioUtilities::kRenderQuantumFrames;
DCHECK_LE(numberOfInputChannels, BaseAudioContext::maxNumberOfChannels());

Powered by Google App Engine
This is Rietveld 408576698