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

Unified Diff: Source/core/platform/audio/EqualPowerPanner.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/EqualPowerPanner.h ('k') | Source/core/platform/audio/FFTConvolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/EqualPowerPanner.cpp
diff --git a/Source/core/platform/audio/EqualPowerPanner.cpp b/Source/core/platform/audio/EqualPowerPanner.cpp
index 6ebe93b396478cce0e164dc97c6eb37ca5d2e194..aed8f2ff738bcea28008ef7bff17aa61caf359f2 100644
--- a/Source/core/platform/audio/EqualPowerPanner.cpp
+++ b/Source/core/platform/audio/EqualPowerPanner.cpp
@@ -63,18 +63,18 @@ void EqualPowerPanner::pan(double azimuth, double /*elevation*/, const AudioBus*
if (!isOutputSafe)
return;
- const float* sourceL = inputBus->channel(0)->data();
+ const float* sourceL = inputBus->channel(0)->data();
const float* sourceR = numberOfInputChannels > 1 ? inputBus->channel(1)->data() : sourceL;
float* destinationL = outputBus->channelByType(AudioBus::ChannelLeft)->mutableData();
float* destinationR = outputBus->channelByType(AudioBus::ChannelRight)->mutableData();
-
+
if (!sourceL || !sourceR || !destinationL || !destinationR)
return;
-
+
// Clamp azimuth to allowed range of -180 -> +180.
azimuth = max(-180.0, azimuth);
azimuth = min(180.0, azimuth);
-
+
// Alias the azimuth ranges behind us to in front of us:
// -90 -> -180 to -90 -> 0 and 90 -> 180 to 90 -> 0
if (azimuth < -90)
@@ -103,21 +103,21 @@ void EqualPowerPanner::pan(double azimuth, double /*elevation*/, const AudioBus*
desiredGainL = cos(0.5 * piDouble * desiredPanPosition);
desiredGainR = sin(0.5 * piDouble * desiredPanPosition);
-
+
// Don't de-zipper on first render call.
if (m_isFirstRender) {
m_isFirstRender = false;
m_gainL = desiredGainL;
m_gainR = desiredGainR;
}
-
+
// Cache in local variables.
double gainL = m_gainL;
double gainR = m_gainR;
-
+
// Get local copy of smoothing constant.
const double SmoothingConstant = m_smoothingConstant;
-
+
int n = framesToProcess;
if (numberOfInputChannels == 1) { // For mono source case.
« no previous file with comments | « Source/core/platform/audio/EqualPowerPanner.h ('k') | Source/core/platform/audio/FFTConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698