Index: Source/platform/audio/UpSampler.cpp |
diff --git a/Source/platform/audio/UpSampler.cpp b/Source/platform/audio/UpSampler.cpp |
index 005aaec7aa85c3729b1ca172c7f6d0400bd1830a..c6d7edf7c48549830e0a47f88be285b9713271ed 100644 |
--- a/Source/platform/audio/UpSampler.cpp |
+++ b/Source/platform/audio/UpSampler.cpp |
@@ -67,7 +67,7 @@ void UpSampler::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. |
m_kernel[i] = sinc * window; |