0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00

flip sign

This commit is contained in:
2026-02-15 21:49:19 +01:00
parent ee3bfb9d98
commit eb4ec561ec

View File

@@ -37,7 +37,7 @@ float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right,
*audio = (mid*half_audio);
if(st->stereo_hilbert) {
float stereo = (crealf(stereo_hilbert) * signalx2) + (cimagf(stereo_hilbert) * signalx2cos);
float stereo = (crealf(stereo_hilbert) * signalx2) - (cimagf(stereo_hilbert) * signalx2cos);
*audio += (stereo * half_audio);
} else *audio += ((side*signalx2) * half_audio);
return (signalx1*st->pilot_volume);