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

Unified Diff: Source/core/platform/audio/SincResampler.h

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/ReverbInputBuffer.cpp ('k') | Source/core/platform/audio/SincResampler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/SincResampler.h
diff --git a/Source/core/platform/audio/SincResampler.h b/Source/core/platform/audio/SincResampler.h
index 74b34c6c6aaae50f06547dd5d81fc13bef1282c6..807596e37968361ce7136a6d22fd7fc69d29a620 100644
--- a/Source/core/platform/audio/SincResampler.h
+++ b/Source/core/platform/audio/SincResampler.h
@@ -37,12 +37,12 @@ namespace WebCore {
// SincResampler is a high-quality sample-rate converter.
class SincResampler {
-public:
+public:
// scaleFactor == sourceSampleRate / destinationSampleRate
// kernelSize can be adjusted for quality (higher is better)
// numberOfKernelOffsets is used for interpolation and is the number of sub-sample kernel shifts.
SincResampler(double scaleFactor, unsigned kernelSize = 32, unsigned numberOfKernelOffsets = 32);
-
+
// Processes numberOfSourceFrames from source to produce numberOfSourceFrames / scaleFactor frames in destination.
void process(const float* source, float* destination, unsigned numberOfSourceFrames);
@@ -52,7 +52,7 @@ public:
protected:
void initializeKernel();
void consumeSource(float* buffer, unsigned numberOfSourceFrames);
-
+
double m_scaleFactor;
unsigned m_kernelSize;
unsigned m_numberOfKernelOffsets;
@@ -60,11 +60,11 @@ protected:
// m_kernelStorage has m_numberOfKernelOffsets kernels back-to-back, each of size m_kernelSize.
// The kernel offsets are sub-sample shifts of a windowed sinc() shifted from 0.0 to 1.0 sample.
AudioFloatArray m_kernelStorage;
-
+
// m_virtualSourceIndex is an index on the source input buffer with sub-sample precision.
// It must be double precision to avoid drift.
double m_virtualSourceIndex;
-
+
// This is the number of destination frames we generate per processing pass on the buffer.
unsigned m_blockSize;
@@ -73,9 +73,9 @@ protected:
const float* m_source;
unsigned m_sourceFramesAvailable;
-
+
// m_sourceProvider is used to provide the audio input stream to the resampler.
- AudioSourceProvider* m_sourceProvider;
+ AudioSourceProvider* m_sourceProvider;
// The buffer is primed once at the very beginning of processing.
bool m_isBufferPrimed;
« no previous file with comments | « Source/core/platform/audio/ReverbInputBuffer.cpp ('k') | Source/core/platform/audio/SincResampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698