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

try to add a simple rc lpf

This commit is contained in:
2025-03-26 14:04:38 +01:00
parent 4c472c0fc0
commit fc9bbd3262
3 changed files with 22 additions and 1 deletions

View File

@@ -16,4 +16,7 @@ typedef struct
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate);
float apply_preemphasis(ResistorCapacitor *filter, float sample);
float hard_clip(float sample, float threshold);
float hard_clip(float sample, float threshold);
void init_rc_lpf(ResistorCapacitor *filter, float cutoff, float sample_rate);
float apply_rc_lpf(ResistorCapacitor *filter, float sample);