0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
This commit is contained in:
2025-01-01 02:38:19 +01:00
parent bb22466172
commit 60a43e2e15

View File

@@ -126,6 +126,8 @@ int main() {
init_hilbert(&hilbert); init_hilbert(&hilbert);
DelayLine monoDelay; DelayLine monoDelay;
init_delay_line(&monoDelay, 99); init_delay_line(&monoDelay, 99);
LowPassFilter ssb_lpf;
init_low_pass_filter(&ssb_lpf, 38150, SAMPLE_RATE);
#ifdef PREEMPHASIS #ifdef PREEMPHASIS
Emphasis preemp_l, preemp_r; Emphasis preemp_l, preemp_r;
init_emphasis(&preemp_l, PREEMPHASIS_TAU, SAMPLE_RATE); init_emphasis(&preemp_l, PREEMPHASIS_TAU, SAMPLE_RATE);
@@ -192,7 +194,7 @@ int main() {
mpx[i] = delay_line(&monoDelay, mono) * MONO_VOLUME + mpx[i] = delay_line(&monoDelay, mono) * MONO_VOLUME +
pilot * PILOT_VOLUME + pilot * PILOT_VOLUME +
lsb*STEREO_VOLUME; apply_low_pass_filter(&ssb_lpf, lsb)*STEREO_VOLUME;
} }
if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) { if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) {