From 33db8a8b039407a70fa7901844a676fe0bfe9a3b Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 12 May 2018 00:44:31 +0200 Subject: [PATCH] Comments. --- src/common/audio/LanczosResampler.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/audio/LanczosResampler.cxx b/src/common/audio/LanczosResampler.cxx index dec22c07a..f5467a9e6 100644 --- a/src/common/audio/LanczosResampler.cxx +++ b/src/common/audio/LanczosResampler.cxx @@ -109,6 +109,7 @@ void LanczosResampler::precomputeKernels() for (uInt32 i = 0; i < myPrecomputedKernelCount; i++) { float* kernel = myPrecomputedKernels + myKernelSize * i; + // The kernel is normalized such to be evaluate on time * formatFrom.sampleRate float center = static_cast(timeIndex) / static_cast(myFormatTo.sampleRate); @@ -120,7 +121,8 @@ void LanczosResampler::precomputeKernels() // Next step: time += 1 / formatTo.sampleRate // - // By construction, we limit x in the kernal evaluation to 0 .. 1 / formatFrom.sampleRate + // By construction, we limit the argument during kernel evaluation to 0 .. 1, which + // corresponds to 0 .. 1 / formatFrom.sampleRate for the time // // time = N / formatFrom.sampleRate + delta //