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
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"port": 13452, "port": 13452,
"time": 1735655261170, "time": 1735658190321,
"version": "0.0.3" "version": "0.0.3"
} }
+7 -1
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) 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
SCAMod is a simple FM modulator which can be used to modulate a secondary audio stream, has similiar cpu usage and latency as STCode 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 # 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
+2 -2
View File
@@ -178,11 +178,11 @@ int main() {
#endif #endif
float mono = (current_left_input + current_right_input) / 2.0f; // Stereo to Mono 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 + mpx[i] = mono * MONO_VOLUME +
pilot * PILOT_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) { if (pa_simple_write(output_device, mpx, sizeof(mpx), NULL) < 0) {