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

Unified Diff: Source/core/platform/audio/ReverbAccumulationBuffer.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/Reverb.cpp ('k') | Source/core/platform/audio/ReverbConvolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/ReverbAccumulationBuffer.cpp
diff --git a/Source/core/platform/audio/ReverbAccumulationBuffer.cpp b/Source/core/platform/audio/ReverbAccumulationBuffer.cpp
index f1d79caa7ce78094378d5f5b776d02ab596953c7..e7506fa0152f1127ad8c525829b13c9a28c9cd19 100644
--- a/Source/core/platform/audio/ReverbAccumulationBuffer.cpp
+++ b/Source/core/platform/audio/ReverbAccumulationBuffer.cpp
@@ -49,7 +49,7 @@ void ReverbAccumulationBuffer::readAndClear(float* destination, size_t numberOfF
{
size_t bufferLength = m_buffer.size();
bool isCopySafe = m_readIndex <= bufferLength && numberOfFrames <= bufferLength;
-
+
ASSERT(isCopySafe);
if (!isCopySafe)
return;
@@ -81,7 +81,7 @@ void ReverbAccumulationBuffer::updateReadIndex(int* readIndex, size_t numberOfFr
int ReverbAccumulationBuffer::accumulate(float* source, size_t numberOfFrames, int* readIndex, size_t delayFrames)
{
size_t bufferLength = m_buffer.size();
-
+
size_t writeIndex = (*readIndex + delayFrames) % bufferLength;
// Update caller's readIndex
@@ -101,7 +101,7 @@ int ReverbAccumulationBuffer::accumulate(float* source, size_t numberOfFrames, i
vadd(source, 1, destination + writeIndex, 1, destination + writeIndex, 1, numberOfFrames1);
// Handle wrap-around if necessary
- if (numberOfFrames2 > 0)
+ if (numberOfFrames2 > 0)
vadd(source + numberOfFrames1, 1, destination, 1, destination, 1, numberOfFrames2);
return writeIndex;
« no previous file with comments | « Source/core/platform/audio/Reverb.cpp ('k') | Source/core/platform/audio/ReverbConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698