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:
@@ -37,7 +37,7 @@ float stereo_encode(StereoEncoder* st, uint8_t enabled, float left, float right,
|
|||||||
|
|
||||||
*audio = (mid*half_audio);
|
*audio = (mid*half_audio);
|
||||||
if(st->stereo_hilbert) {
|
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);
|
*audio += (stereo * half_audio);
|
||||||
} else *audio += ((side*signalx2) * half_audio);
|
} else *audio += ((side*signalx2) * half_audio);
|
||||||
return (signalx1*st->pilot_volume);
|
return (signalx1*st->pilot_volume);
|
||||||
|
|||||||
Reference in New Issue
Block a user