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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.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/AudioParamTimeline.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp b/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp
index 35731182aa8088b21deb7f47a87c1c8cdf21436e..cf587a1375449a8fba897330000341e9e43b0444 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParamTimeline.cpp
@@ -398,7 +398,7 @@ float AudioParamTimeline::valueForContextTime(
double sampleRate = audioDestination.sampleRate();
size_t startFrame = audioDestination.currentSampleFrame();
// One parameter change per render quantum.
- double controlRate = sampleRate / AudioHandler::ProcessingSizeInFrames;
+ double controlRate = sampleRate / AudioUtilities::kRenderQuantumFrames;
value = valuesForFrameRange(startFrame, startFrame + 1, defaultValue, &value,
1, sampleRate, controlRate, minValue, maxValue);

Powered by Google App Engine
This is Rietveld 408576698