0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +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

@@ -1,5 +1,5 @@
{
"port": 13452,
"time": 1735655261170,
"time": 1735658190321,
"version": "0.0.3"
}

View File

@@ -11,8 +11,14 @@ All that in about 3.5% cpu usage on a RPI-5 (lpf makes it 10, but stereo tool ha
Also nearly no latency, not like Stereo Tool (or mpxgen which doesn't even work)
As far as i've tested it (29-31 december) it's been fine but after a fix it was great, so i'd redecommend you
# SCAMod
SCAMod is a simple FM modulator which can be used to modulate a secondary audio stream, has similiar cpu usage and latency as STCode
Has a fine quality, but as it goes for 12 khz fm signals
# QDCode
QD code is a FM quadrophonic encoder, following the Dorren standard
QD code is a FM quadrophonic encoder, following the Dorren standard
I haven't tested this, but i'm scared, i don't have a decoder anyway

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) {