0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

make lpf a IIR

This commit is contained in:
2025-01-02 01:01:14 +01:00
parent d9625757b3
commit 9ddee9239d
7 changed files with 17 additions and 35 deletions

View File

@@ -15,9 +15,8 @@ void init_emphasis(Emphasis *pe, float tau, float sample_rate);
float apply_pre_emphasis(Emphasis *pe, float sample);
typedef struct {
float low_pass_fir[FIR_PHASES][FIR_TAPS];
float sample_buffer[FIR_TAPS];
int buffer_index;
float alpha;
float prev_sample;
} LowPassFilter;
void init_low_pass_filter(LowPassFilter *lp, float cutoff_frequency, float sample_rate);