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

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

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . Created 4 years, 2 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/IIRProcessor.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
index 0a1cd2e51b24b116562620082d3259337899cbc7..988f0a656c4ef28e24d3ff073b149cec312be580 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp
@@ -25,8 +25,8 @@ IIRProcessor::IIRProcessor(float sampleRate,
m_feedforward.copyToRange(feedforwardCoef.data(), 0, feedforwardLength);
m_feedback.copyToRange(feedbackCoef.data(), 0, feedbackLength);
- // Need to scale the feedback and feedforward coefficients appropriately. (It's up to the caller
- // to ensure feedbackCoef[0] is not 0!)
+ // Need to scale the feedback and feedforward coefficients appropriately.
+ // (It's up to the caller to ensure feedbackCoef[0] is not 0.)
DCHECK_NE(feedbackCoef[0], 0);
if (feedbackCoef[0] != 1) {
@@ -38,7 +38,8 @@ IIRProcessor::IIRProcessor(float sampleRate,
//
// y(n) + a[1]/a[0]*y(n-1) + ... = b[0]/a[0]*x(n) + b[1]/a[0]*x(n-1) + ...
//
- // Thus, the feedback and feedforward coefficients need to be scaled by 1/a[0].
+ // Thus, the feedback and feedforward coefficients need to be scaled by
+ // 1/a[0].
float scale = feedbackCoef[0];
for (unsigned k = 1; k < feedbackLength; ++k)
m_feedback[k] /= scale;
@@ -70,8 +71,8 @@ void IIRProcessor::process(const AudioBus* source,
return;
}
- // For each channel of our input, process using the corresponding IIRDSPKernel into the output
- // channel.
+ // For each channel of our input, process using the corresponding IIRDSPKernel
+ // into the output channel.
for (unsigned i = 0; i < m_kernels.size(); ++i)
m_kernels[i]->process(source->channel(i)->data(),
destination->channel(i)->mutableData(),

Powered by Google App Engine
This is Rietveld 408576698