From 5aa0383d8c6f1398ee0cd43722155b02fcf5c7d9 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 31 Dec 2024 16:19:29 +0100 Subject: [PATCH] light changes --- .vscode/.server-controller-port.log | 2 +- README.md | 8 +++++++- src/stereo_coder.c | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.vscode/.server-controller-port.log b/.vscode/.server-controller-port.log index 4842a2a..56b5cd9 100644 --- a/.vscode/.server-controller-port.log +++ b/.vscode/.server-controller-port.log @@ -1,5 +1,5 @@ { "port": 13452, - "time": 1735655261170, + "time": 1735658190321, "version": "0.0.3" } \ No newline at end of file diff --git a/README.md b/README.md index fde7de0..c434302 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/src/stereo_coder.c b/src/stereo_coder.c index 4f1519c..3a124a7 100644 --- a/src/stereo_coder.c +++ b/src/stereo_coder.c @@ -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) {