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

Unified Diff: Source/core/platform/audio/AudioResampler.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/AudioResampler.h ('k') | Source/core/platform/audio/AudioResamplerKernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/AudioResampler.cpp
diff --git a/Source/core/platform/audio/AudioResampler.cpp b/Source/core/platform/audio/AudioResampler.cpp
index a3c18cb182ec8cad6ccbc652cbbf8b33af252991..58ceae1c6fcc4b9fea2f51b9f68b2f7c7c3c5ffe 100644
--- a/Source/core/platform/audio/AudioResampler.cpp
+++ b/Source/core/platform/audio/AudioResampler.cpp
@@ -33,7 +33,7 @@
#include "wtf/MathExtras.h"
using namespace std;
-
+
namespace WebCore {
const double AudioResampler::MaxRate = 8.0;
@@ -76,7 +76,7 @@ void AudioResampler::process(AudioSourceProvider* provider, AudioBus* destinatio
ASSERT(provider);
if (!provider)
return;
-
+
unsigned numberOfChannels = m_kernels.size();
// Make sure our configuration matches the bus we're rendering to.
@@ -93,7 +93,7 @@ void AudioResampler::process(AudioSourceProvider* provider, AudioBus* destinatio
ASSERT(fillPointer);
if (!fillPointer)
return;
-
+
m_sourceBus->setChannelMemory(i, fillPointer, framesNeeded);
}
@@ -112,7 +112,7 @@ void AudioResampler::setRate(double rate)
{
if (std::isnan(rate) || std::isinf(rate) || rate <= 0.0)
return;
-
+
m_rate = min(AudioResampler::MaxRate, rate);
}
« no previous file with comments | « Source/core/platform/audio/AudioResampler.h ('k') | Source/core/platform/audio/AudioResamplerKernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698