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; |