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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.h

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . 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/modules/webaudio/PeriodicWave.h
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
index e9a598fbbde7931832ae4b109f0ba76cdbac8ce7..a6cf94c44b013d0d48e010c97313decc8b5731f5 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
@@ -52,7 +52,8 @@ class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>,
static PeriodicWave* createSawtooth(float sampleRate);
static PeriodicWave* createTriangle(float sampleRate);
- // Creates an arbitrary periodic wave given the frequency components (Fourier coefficients).
+ // Creates an arbitrary periodic wave given the frequency components (Fourier
+ // coefficients).
static PeriodicWave* create(BaseAudioContext&,
size_t realLength,
const float* real,
@@ -73,18 +74,21 @@ class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>,
virtual ~PeriodicWave();
- // Returns pointers to the lower and higher wave data for the pitch range containing
- // the given fundamental frequency. These two tables are in adjacent "pitch" ranges
- // where the higher table will have the maximum number of partials which won't alias when played back
- // at this fundamental frequency. The lower wave is the next range containing fewer partials than the higher wave.
- // Interpolation between these two tables can be made according to tableInterpolationFactor.
+ // Returns pointers to the lower and higher wave data for the pitch range
+ // containing the given fundamental frequency. These two tables are in
+ // adjacent "pitch" ranges where the higher table will have the maximum number
+ // of partials which won't alias when played back at this fundamental
+ // frequency. The lower wave is the next range containing fewer partials than
+ // the higher wave. Interpolation between these two tables can be made
+ // according to tableInterpolationFactor.
// Where values from 0 -> 1 interpolate between lower -> higher.
void waveDataForFundamentalFrequency(float,
float*& lowerWaveData,
float*& higherWaveData,
float& tableInterpolationFactor);
- // Returns the scalar multiplier to the oscillator frequency to calculate wave buffer phase increment.
+ // Returns the scalar multiplier to the oscillator frequency to calculate wave
+ // buffer phase increment.
float rateScale() const { return m_rateScale; }
// The size of the FFT to use based on the sampling rate.
@@ -106,9 +110,9 @@ class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>,
unsigned m_numberOfRanges;
float m_centsPerRange;
- // The lowest frequency (in Hertz) where playback will include all of the partials.
- // Playing back lower than this frequency will gradually lose more high-frequency information.
- // This frequency is quite low (~10Hz @ 44.1KHz)
+ // The lowest frequency (in Hertz) where playback will include all of the
+ // partials. Playing back lower than this frequency will gradually lose more
+ // high-frequency information. This frequency is quite low (~10Hz @ 44.1KHz)
float m_lowestFundamentalFrequency;
float m_rateScale;
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/PannerNode.cpp ('k') | third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698