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

Unified Diff: third_party/WebKit/Source/platform/audio/SincResampler.h

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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
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.

Powered by Google App Engine
This is Rietveld 408576698