From e0cc4fe10aba8ed679ba57ddc62e6cc426046848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=B6ck?= Date: Sat, 12 Mar 2016 17:36:47 +0100 Subject: [PATCH] low-pass filter now has 22050Hz cutoff Might not apply to the fm standards, but since you are not supposed to use it publicly, it doesn't matter --- src/fm_mpx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fm_mpx.c b/src/fm_mpx.c index 3ab6530..0d4ac85 100644 --- a/src/fm_mpx.c +++ b/src/fm_mpx.c @@ -134,8 +134,8 @@ int fm_mpx_open(char *filename, size_t len) { // Create the low-pass FIR filter - float cutoff_freq = 15000 * .8; - if(in_samplerate/2 < cutoff_freq) cutoff_freq = in_samplerate/2 * .8; + float cutoff_freq = 22050; + if(in_samplerate/2 < cutoff_freq) cutoff_freq = in_samplerate/2;