From cffc0cc5d3733ade3a08a0aeac36d5ed05381fa8 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:30:27 +0200 Subject: [PATCH] Update fm_mpx.c --- src/pifmrds/fm_mpx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pifmrds/fm_mpx.c b/src/pifmrds/fm_mpx.c index 9c4cc2f..2f41caf 100644 --- a/src/pifmrds/fm_mpx.c +++ b/src/pifmrds/fm_mpx.c @@ -81,7 +81,7 @@ float *alloc_empty_buffer(size_t length) { } -int fm_mpx_open(char *filename, size_t len, int raw, double preemphasis, int rawSampleRate, int rawChannels) { +int fm_mpx_open(char *filename, size_t len, int raw, double preemphasis, int rawSampleRate, int rawChannels, float cutoff_freq) { length = len; raw_ = raw; @@ -125,7 +125,6 @@ int fm_mpx_open(char *filename, size_t len, int raw, double preemphasis, int raw } // Choose a cutoff frequency for the low-pass FIR filter - float cutoff_freq = 15700; //float cutoff_freq = 3000; //For NFM if(in_samplerate/2 < cutoff_freq) cutoff_freq = in_samplerate/2 * .8;