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

Unified Diff: Source/core/platform/audio/HRTFDatabase.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/HRTFDatabase.h ('k') | Source/core/platform/audio/HRTFDatabaseLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/HRTFDatabase.cpp
diff --git a/Source/core/platform/audio/HRTFDatabase.cpp b/Source/core/platform/audio/HRTFDatabase.cpp
index 5bf5e1edca797a7cc6a9e69a78baa7efc443ba60..9980211c5759fc63572a0d718d75883c11179bd4 100644
--- a/Source/core/platform/audio/HRTFDatabase.cpp
+++ b/Source/core/platform/audio/HRTFDatabase.cpp
@@ -61,7 +61,7 @@ HRTFDatabase::HRTFDatabase(float sampleRate)
ASSERT(hrtfElevation.get());
if (!hrtfElevation.get())
return;
-
+
m_elevations[elevationIndex] = hrtfElevation.release();
elevationIndex += InterpolationFactor;
}
@@ -88,16 +88,16 @@ void HRTFDatabase::getKernelsFromAzimuthElevation(double azimuthBlend, unsigned
{
unsigned elevationIndex = indexFromElevationAngle(elevationAngle);
ASSERT_WITH_SECURITY_IMPLICATION(elevationIndex < m_elevations.size() && m_elevations.size() > 0);
-
+
if (!m_elevations.size()) {
kernelL = 0;
kernelR = 0;
return;
}
-
+
if (elevationIndex > m_elevations.size() - 1)
- elevationIndex = m_elevations.size() - 1;
-
+ elevationIndex = m_elevations.size() - 1;
+
HRTFElevation* hrtfElevation = m_elevations[elevationIndex].get();
ASSERT(hrtfElevation);
if (!hrtfElevation) {
@@ -105,9 +105,9 @@ void HRTFDatabase::getKernelsFromAzimuthElevation(double azimuthBlend, unsigned
kernelR = 0;
return;
}
-
+
hrtfElevation->getKernelsFromAzimuth(azimuthBlend, azimuthIndex, kernelL, kernelR, frameDelayL, frameDelayR);
-}
+}
unsigned HRTFDatabase::indexFromElevationAngle(double elevationAngle)
{
@@ -115,7 +115,7 @@ unsigned HRTFDatabase::indexFromElevationAngle(double elevationAngle)
elevationAngle = max(static_cast<double>(MinElevation), elevationAngle);
elevationAngle = min(static_cast<double>(MaxElevation), elevationAngle);
- unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationAngle - MinElevation) / RawElevationAngleSpacing);
+ unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationAngle - MinElevation) / RawElevationAngleSpacing);
return elevationIndex;
}
« no previous file with comments | « Source/core/platform/audio/HRTFDatabase.h ('k') | Source/core/platform/audio/HRTFDatabaseLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698