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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user