Index: third_party/WebKit/Source/platform/audio/SincResampler.h |
diff --git a/third_party/WebKit/Source/platform/audio/SincResampler.h b/third_party/WebKit/Source/platform/audio/SincResampler.h |
index 8b4244df724d1b0f4dbf9b31d6ed7f24c00a2f52..b96ec94cfc72250734cfac6604988958d4649646 100644 |
--- a/third_party/WebKit/Source/platform/audio/SincResampler.h |
+++ b/third_party/WebKit/Source/platform/audio/SincResampler.h |
@@ -46,12 +46,14 @@ class PLATFORM_EXPORT SincResampler { |
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. |
+ // 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. |
+ // Processes numberOfSourceFrames from source to produce numberOfSourceFrames |
+ // / scaleFactor frames in destination. |
void process(const float* source, |
float* destination, |
unsigned numberOfSourceFrames); |
@@ -69,15 +71,17 @@ class PLATFORM_EXPORT SincResampler { |
unsigned m_kernelSize; |
unsigned m_numberOfKernelOffsets; |
- // 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. |
+ // 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. |
+ // 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. |
+ // This is the number of destination frames we generate per processing pass on |
+ // the buffer. |
unsigned m_blockSize; |
// Source is copied into this buffer for each processing pass. |
@@ -86,7 +90,8 @@ class PLATFORM_EXPORT SincResampler { |
const float* m_source; |
unsigned m_sourceFramesAvailable; |
- // m_sourceProvider is used to provide the audio input stream to the resampler. |
+ // m_sourceProvider is used to provide the audio input stream to the |
+ // resampler. |
AudioSourceProvider* m_sourceProvider; |
// The buffer is primed once at the very beginning of processing. |