From 25adda3d8c9c3583d125419474860dc3ea3e79c9 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sat, 15 Sep 2012 07:18:44 +0200 Subject: [PATCH] scale coefficients by interpolation factor --- ddc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddc.c b/ddc.c index 848da21..b9513f1 100644 --- a/ddc.c +++ b/ddc.c @@ -54,7 +54,7 @@ struct ddc *alloc_ddc(int L, int M, float carrier, float bw, float rate, int tap float t = w * h; sum += t; complex float o = cexpf(I * 2.0 * M_PI * carrier * lstep * n); - b[i] = t * o; + b[i] = t * o * (float)L; } for (int i = 0; i < taps; i++) b[i] /= sum;