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

Unified Diff: Source/modules/webaudio/BiquadProcessor.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/modules/webaudio/BiquadProcessor.h ('k') | Source/modules/webaudio/ChannelMergerNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/BiquadProcessor.cpp
diff --git a/Source/modules/webaudio/BiquadProcessor.cpp b/Source/modules/webaudio/BiquadProcessor.cpp
index 8b3ae8ffdd1f3e12661b1b7dec4f6ac8eec869cb..2655abeb2156ffbd76bfea821192d4fc7401c33a 100644
--- a/Source/modules/webaudio/BiquadProcessor.cpp
+++ b/Source/modules/webaudio/BiquadProcessor.cpp
@@ -31,7 +31,7 @@
#include "modules/webaudio/BiquadDSPKernel.h"
namespace WebCore {
-
+
BiquadProcessor::BiquadProcessor(AudioContext* context, float sampleRate, size_t numberOfChannels, bool autoInitialize)
: AudioDSPKernelProcessor(sampleRate, numberOfChannels)
, m_type(LowPass)
@@ -72,7 +72,7 @@ void BiquadProcessor::checkForDirtyCoefficients()
// The BiquadDSPKernel objects rely on this value to see if they need to re-compute their internal filter coefficients.
m_filterCoefficientsDirty = false;
m_hasSampleAccurateValues = false;
-
+
if (m_parameter1->hasSampleAccurateValues() || m_parameter2->hasSampleAccurateValues() || m_parameter3->hasSampleAccurateValues() || m_parameter4->hasSampleAccurateValues()) {
m_filterCoefficientsDirty = true;
m_hasSampleAccurateValues = true;
@@ -103,9 +103,9 @@ void BiquadProcessor::process(const AudioBus* source, AudioBus* destination, siz
destination->zero();
return;
}
-
+
checkForDirtyCoefficients();
-
+
// For each channel of our input, process using the corresponding BiquadDSPKernel 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(), framesToProcess);
@@ -127,7 +127,7 @@ void BiquadProcessor::getFrequencyResponse(int nFrequencies,
// Compute the frequency response on a separate temporary kernel
// to avoid interfering with the processing running in the audio
// thread on the main kernels.
-
+
OwnPtr<BiquadDSPKernel> responseKernel = adoptPtr(new BiquadDSPKernel(this));
responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, phaseResponse);
« no previous file with comments | « Source/modules/webaudio/BiquadProcessor.h ('k') | Source/modules/webaudio/ChannelMergerNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698