From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp') diff --git a/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp b/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp index f4ff708a7..035dc2b20 100644 --- a/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp +++ b/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp @@ -30,7 +30,6 @@ #include "AudioBus.h" #include "AudioUtilities.h" -#include "FFTFrame.h" #include "VectorMath.h" #include #include @@ -185,7 +184,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; -- cgit v1.2.1