Update fm_mpx.c

This commit is contained in:
Kuba 2023-10-21 18:30:27 +02:00 committed by GitHub
parent 93672cf105
commit cffc0cc5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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; length = len;
raw_ = raw; 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 // Choose a cutoff frequency for the low-pass FIR filter
float cutoff_freq = 15700;
//float cutoff_freq = 3000; //For NFM //float cutoff_freq = 3000; //For NFM
if(in_samplerate/2 < cutoff_freq) cutoff_freq = in_samplerate/2 * .8; if(in_samplerate/2 < cutoff_freq) cutoff_freq = in_samplerate/2 * .8;