Index: Source/platform/audio/SincResampler.cpp |
diff --git a/Source/platform/audio/SincResampler.cpp b/Source/platform/audio/SincResampler.cpp |
index c0414ebbceac9e6f1e85834881aa9943fe34f3de..7f76d72ca09ca2155ae42415d0d8de2a0eede6d8 100644 |
--- a/Source/platform/audio/SincResampler.cpp |
+++ b/Source/platform/audio/SincResampler.cpp |
@@ -119,7 +119,7 @@ void SincResampler::initializeKernel() |
// Compute Blackman window, matching the offset of the sinc(). |
double x = (i - subsampleOffset) / n; |
- double window = a0 - a1 * cos(2.0 * piDouble * x) + a2 * cos(4.0 * piDouble * x); |
+ double window = a0 - a1 * cos(twoPiDouble * x) + a2 * cos(twoPiDouble * 2.0 * x); |
// Window the sinc() function and store at the correct offset. |
m_kernelStorage[i + offsetIndex * m_kernelSize] = sinc * window; |