do the preemp gain properly, set a refrence freq (+0db) sligthly above the LPF cutoff, thus we avoid clipping

This commit is contained in:
2025-06-09 20:03:44 +02:00
parent bcb9559d59
commit cad6080c07
3 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ typedef struct
float gain;
} ResistorCapacitor;
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate);
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate, float ref_freq);
float apply_preemphasis(ResistorCapacitor *filter, float sample);