| Index: Source/modules/webaudio/RealtimeAnalyser.h
|
| diff --git a/Source/modules/webaudio/RealtimeAnalyser.h b/Source/modules/webaudio/RealtimeAnalyser.h
|
| index 49c1df8b73408210dd14f9c5d0349f87aab76e81..363d74e2bc5a43e3046c7fef2fe90eb401f4aeee 100644
|
| --- a/Source/modules/webaudio/RealtimeAnalyser.h
|
| +++ b/Source/modules/webaudio/RealtimeAnalyser.h
|
| @@ -40,7 +40,7 @@ class RealtimeAnalyser {
|
| public:
|
| RealtimeAnalyser();
|
| virtual ~RealtimeAnalyser();
|
| -
|
| +
|
| void reset();
|
|
|
| size_t fftSize() const { return m_fftSize; }
|
| @@ -77,19 +77,19 @@ private:
|
| // The audio thread writes the input audio here.
|
| AudioFloatArray m_inputBuffer;
|
| unsigned m_writeIndex;
|
| -
|
| +
|
| size_t m_fftSize;
|
| OwnPtr<FFTFrame> m_analysisFrame;
|
| void doFFTAnalysis();
|
| -
|
| +
|
| // doFFTAnalysis() stores the floating-point magnitude analysis data here.
|
| AudioFloatArray m_magnitudeBuffer;
|
| AudioFloatArray& magnitudeBuffer() { return m_magnitudeBuffer; }
|
|
|
| // A value between 0 and 1 which averages the previous version of m_magnitudeBuffer with the current analysis magnitude data.
|
| - double m_smoothingTimeConstant;
|
| + double m_smoothingTimeConstant;
|
|
|
| - // The range used when converting when using getByteFrequencyData().
|
| + // The range used when converting when using getByteFrequencyData().
|
| double m_minDecibels;
|
| double m_maxDecibels;
|
| };
|
|
|