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

Unified Diff: Source/core/platform/audio/DynamicsCompressor.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/DirectConvolver.cpp ('k') | Source/core/platform/audio/EqualPowerPanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/DynamicsCompressor.cpp
diff --git a/Source/core/platform/audio/DynamicsCompressor.cpp b/Source/core/platform/audio/DynamicsCompressor.cpp
index 6f735cd1985ed8e061fd81106e7005f022941e14..46621bb481110005154402fcf7faa4d34a69d307 100644
--- a/Source/core/platform/audio/DynamicsCompressor.cpp
+++ b/Source/core/platform/audio/DynamicsCompressor.cpp
@@ -39,7 +39,7 @@
namespace WebCore {
using namespace AudioUtilities;
-
+
DynamicsCompressor::DynamicsCompressor(float sampleRate, unsigned numberOfChannels)
: m_numberOfChannels(numberOfChannels)
, m_sampleRate(sampleRate)
@@ -64,7 +64,7 @@ void DynamicsCompressor::setParameterValue(unsigned parameterID, float value)
void DynamicsCompressor::initializeParameters()
{
// Initializes compressor to default values.
-
+
m_parameters[ParamThreshold] = -24; // dB
m_parameters[ParamKnee] = 30; // dB
m_parameters[ParamRatio] = 12; // unit-less
@@ -81,7 +81,7 @@ void DynamicsCompressor::initializeParameters()
m_parameters[ParamFilterStageGain] = 4.4f; // dB
m_parameters[ParamFilterStageRatio] = 2;
m_parameters[ParamFilterAnchor] = 15000 / nyquist();
-
+
m_parameters[ParamPostGain] = 0; // dB
m_parameters[ParamReduction] = 0; // dB
@@ -230,8 +230,8 @@ void DynamicsCompressor::process(const AudioBus* sourceBus, AudioBus* destinatio
releaseZone3,
releaseZone4
);
-
- // Update the compression amount.
+
+ // Update the compression amount.
setParameterValue(ParamReduction, m_compressor.meteringGain());
// Apply de-emphasis filter.
« no previous file with comments | « Source/core/platform/audio/DirectConvolver.cpp ('k') | Source/core/platform/audio/EqualPowerPanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698