mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
this?
This commit is contained in:
16
src/fm95.c
16
src/fm95.c
@@ -414,9 +414,11 @@ int main(int argc, char **argv) {
|
|||||||
init_preemphasis(&preemp_l, preemphasis_tau, sample_rate);
|
init_preemphasis(&preemp_l, preemphasis_tau, sample_rate);
|
||||||
init_preemphasis(&preemp_r, preemphasis_tau, sample_rate);
|
init_preemphasis(&preemp_r, preemphasis_tau, sample_rate);
|
||||||
|
|
||||||
Biquad lpf_l, lpf_r;
|
Biquad lpf1_l, lpf1_r, lpf2_l, lpf2_r;
|
||||||
init_butterworth_lpf(&lpf_l, 15000, 192000);
|
init_butterworth_lpf(&lpf1_l, 15000, 192000);
|
||||||
init_butterworth_lpf(&lpf_r, 15000, 192000);
|
init_butterworth_lpf(&lpf1_r, 15000, 192000);
|
||||||
|
init_butterworth_lpf(&lpf2_l, 15000, 192000);
|
||||||
|
init_butterworth_lpf(&lpf2_r, 15000, 192000);
|
||||||
|
|
||||||
signal(SIGINT, stop);
|
signal(SIGINT, stop);
|
||||||
signal(SIGTERM, stop);
|
signal(SIGTERM, stop);
|
||||||
@@ -473,10 +475,10 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
float ready_l = apply_preemphasis(&preemp_l, l_in);
|
float ready_l = apply_preemphasis(&preemp_l, l_in);
|
||||||
float ready_r = apply_preemphasis(&preemp_r, r_in);
|
float ready_r = apply_preemphasis(&preemp_r, r_in);
|
||||||
ready_l = biquad(&lpf_l, ready_l);
|
ready_l = biquad(&lpf1_l, ready_l);
|
||||||
ready_l = biquad(&lpf_r, ready_r);
|
ready_l = biquad(&lpf1_r, ready_r);
|
||||||
ready_l = biquad(&lpf_l, ready_l);
|
ready_l = biquad(&lpf2_l, ready_l);
|
||||||
ready_l = biquad(&lpf_r, ready_r);
|
ready_l = biquad(&lpf2_r, ready_r);
|
||||||
ready_l = hard_clip(ready_l*audio_volume, clipper_threshold);
|
ready_l = hard_clip(ready_l*audio_volume, clipper_threshold);
|
||||||
ready_r = hard_clip(ready_r*audio_volume, clipper_threshold);
|
ready_r = hard_clip(ready_r*audio_volume, clipper_threshold);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user