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:
2024-12-31 22:19:01 +01:00
parent 39e3093cd9
commit 1b2b2e9515

View File

@@ -186,12 +186,11 @@ int main() {
float stereo = (current_left_input - current_right_input) / 2.0f; // Also Stereo to Mono but a bit diffrent
float stereo_i, stereo_q;
apply_hilbert(&hilbert, stereo, &stereo_i, &stereo_q);
float lsb = (stereo_i*cos38-stereo_q*sin38);
float usb = (stereo_i*cos38+stereo_q*sin38);
float lsb = (stereo_i*cos38-stereo_q*(sin38*0.9f));
mpx[i] = mono * MONO_VOLUME +
pilot * PILOT_VOLUME +
(lsb-usb)*STEREO_VOLUME;
lsb*STEREO_VOLUME;
}
if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) {