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

Unified Diff: Source/core/platform/audio/Biquad.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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
« no previous file with comments | « Source/core/platform/audio/Biquad.h ('k') | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/Biquad.cpp
diff --git a/Source/core/platform/audio/Biquad.cpp b/Source/core/platform/audio/Biquad.cpp
index 5928357af263b108eeabc9e9a5f9f8498d09fe42..a9f97601593264e03155d8dac22a6a8f5adf86fd 100644
--- a/Source/core/platform/audio/Biquad.cpp
+++ b/Source/core/platform/audio/Biquad.cpp
@@ -208,7 +208,7 @@ void Biquad::setLowpassParams(double cutoff, double resonance)
{
// Limit cutoff to 0 to 1.
cutoff = std::max(0.0, std::min(cutoff, 1.0));
-
+
if (cutoff == 1) {
// When cutoff is 1, the z-transform is 1.
setNormalizedCoefficients(1, 0, 0,
@@ -281,7 +281,7 @@ void Biquad::setHighpassParams(double cutoff, double resonance)
void Biquad::setNormalizedCoefficients(double b0, double b1, double b2, double a0, double a1, double a2)
{
double a0Inverse = 1 / a0;
-
+
m_b0 = b0 * a0Inverse;
m_b1 = b1 * a0Inverse;
m_b2 = b2 * a0Inverse;
@@ -306,7 +306,7 @@ void Biquad::setLowShelfParams(double frequency, double dbGain)
{
// Clip frequencies to between 0 and 1, inclusive.
frequency = std::max(0.0, std::min(frequency, 1.0));
-
+
double A = pow(10.0, dbGain / 40);
if (frequency == 1) {
@@ -495,7 +495,7 @@ void Biquad::setBandpassParams(double frequency, double Q)
if (Q > 0) {
double alpha = sin(w0) / (2 * Q);
double k = cos(w0);
-
+
double b0 = alpha;
double b1 = 0;
double b2 = -alpha;
@@ -570,7 +570,7 @@ void Biquad::getFrequencyResponse(int nFrequencies,
double b2 = m_b2;
double a1 = m_a1;
double a2 = m_a2;
-
+
for (int k = 0; k < nFrequencies; ++k) {
double omega = -piDouble * frequency[k];
Complex z = Complex(cos(omega), sin(omega));
« no previous file with comments | « Source/core/platform/audio/Biquad.h ('k') | Source/core/platform/audio/DirectConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698