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

light changes

This commit is contained in:
2024-12-31 16:19:29 +01:00
parent 1868cd98ca
commit 5aa0383d8c
3 changed files with 10 additions and 4 deletions

View File

@@ -178,11 +178,11 @@ int main() {
#endif
float mono = (current_left_input + current_right_input) / 2.0f; // Stereo to Mono
float stereo = (current_left_input - current_right_input) / 2.0f; // Also Sterreo to Mono but a bit diffrent
float stereo = (current_left_input - current_right_input) / 2.0f; // Also Stereo to Mono but a bit diffrent
mpx[i] = mono * MONO_VOLUME +
pilot * PILOT_VOLUME +
(stereo * stereo_carrier) * STEREO_VOLUME; // DSB-SC modulate
(stereo * stereo_carrier) * STEREO_VOLUME; // DSB-SC modulation
}
if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) {