Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webaudio / RealtimeAnalyser.cpp
index 4d9cb8e..24d7b72 100644 (file)
@@ -178,7 +178,7 @@ void RealtimeAnalyser::doFFTAnalysis()
     imagP[0] = 0;
 
     // Normalize so than an input sine wave at 0dBfs registers as 0dBfs (undo FFT scaling factor).
-    const double magnitudeScale = 1.0 / DefaultFFTSize;
+    const double magnitudeScale = 1.0 / fftSize;
 
     // A value of 0 does no averaging with the previous result.  Larger values produce slower, but smoother changes.
     double k = m_smoothingTimeConstant;