mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
test
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user