From bc7452d7c84a2b13f0baf10ef1e2e54363840269 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 1 Jan 2025 02:17:16 +0100 Subject: [PATCH] huh --- src/ssb_stereo_coder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssb_stereo_coder.c b/src/ssb_stereo_coder.c index 792983b..ff9d0c8 100644 --- a/src/ssb_stereo_coder.c +++ b/src/ssb_stereo_coder.c @@ -189,10 +189,11 @@ int main() { float stereo_i, stereo_q; apply_hilbert(&hilbert, stereo, &stereo_i, &stereo_q); // I/Q, the Quadrature data is 90 degrees apart from the In-phase data float lsb = (stereo_i*cos38-stereo_q*(sin38*0.75f)); // Compute LSB, as the Hilbert isn't perfect, i'll have to a bit silence down the Q carrier in order to make it better, also, it is just perfect as FM Stereo LSB shouldn't be fully LSB + float lsb = (stereo_i*(cos38*0.75f)-stereo_q*sin38); // Compute LSB, as the Hilbert isn't perfect, i'll have to a bit silence down the Q carrier in order to make it better, also, it is just perfect as FM Stereo LSB shouldn't be fully LSB mpx[i] = delay_line(&monoDelay, mono) * MONO_VOLUME + pilot * PILOT_VOLUME + - lsb*STEREO_VOLUME; + (lsb-usb)*STEREO_VOLUME; } if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) {