From c4a95410153b2abcdca5e4c3c66e3b6d3d5a9e90 Mon Sep 17 00:00:00 2001 From: SaucySoliton Date: Wed, 11 Jan 2017 03:52:03 +0000 Subject: [PATCH] Update overlooked window function as part of filter speedup --- src/fm_mpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fm_mpx.c b/src/fm_mpx.c index dfa0b52..e185bcc 100644 --- a/src/fm_mpx.c +++ b/src/fm_mpx.c @@ -151,7 +151,7 @@ int fm_mpx_open(char *filename, size_t len) { firpreemph=y; // y could be replaced by firpreemph but this // matches the example in the reference material - window = (.54 - .46 * cos(2*PI * (i) / (double) FIR_TAPS*FIR_PHASES )) ; // Hamming window + window = (.54 - .46 * cos(2*PI * (mi) / (double) FIR_TAPS*FIR_PHASES )) ; // Hamming window low_pass_fir[j][i] = firpreemph * window * gain ; } }