0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00
This commit is contained in:
2025-03-27 18:41:56 +01:00
parent abc6922852
commit ed44dbcad2
3 changed files with 35 additions and 57 deletions

View File

@@ -414,9 +414,9 @@ int main(int argc, char **argv) {
init_preemphasis(&preemp_l, preemphasis_tau, sample_rate);
init_preemphasis(&preemp_r, preemphasis_tau, sample_rate);
LPF4 lpf_l, lpf_r;
init_lpf4(&lpf_l, sample_rate, 15000);
init_lpf4(&lpf_r, sample_rate, 15000);
FIR lpf_l, lpf_r;
init_lpf(&lpf_l, 15000, sample_rate);
init_lpf(&lpf_r, 15000, sample_rate);
signal(SIGINT, stop);
signal(SIGTERM, stop);
@@ -473,8 +473,8 @@ int main(int argc, char **argv) {
float ready_l = apply_preemphasis(&preemp_l, l_in);
float ready_r = apply_preemphasis(&preemp_r, r_in);
ready_l = apply_lpf4(&lpf_l, ready_l);
ready_r = apply_lpf4(&lpf_r, ready_r);
ready_l = process_lpf(&lpf_l, ready_l);
ready_r = process_lpf(&lpf_r, ready_r);
ready_l = hard_clip(ready_l*audio_volume, clipper_threshold);
ready_r = hard_clip(ready_r*audio_volume, clipper_threshold);