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
This commit is contained in:
Florian Schöck 2016-03-12 17:36:47 +01:00
parent 3629b9ec46
commit e0cc4fe10a
1 changed files with 2 additions and 2 deletions

View File

@ -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;