From ea9bcc56edb4b5bcced4979075fc05ec30ffbc0d Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 31 Dec 2024 21:08:59 +0100 Subject: [PATCH] adjust volumes --- src/crosby_stereo_encoder.c | 4 ++-- src/quadro_encoder.c | 8 ++++---- src/sca_mod.c | 2 +- src/stereo_coder.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/crosby_stereo_encoder.c b/src/crosby_stereo_encoder.c index fed7bdd..0833253 100644 --- a/src/crosby_stereo_encoder.c +++ b/src/crosby_stereo_encoder.c @@ -20,11 +20,11 @@ #define INPUT_DEVICE "real_real_tx_audio_input.monitor" #define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback" #define BUFFER_SIZE 512 -#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed +#define CLIPPER_THRESHOLD 1.0 // Adjust this as needed #define MONO_VOLUME 0.5f // L+R Signal #define STEREO_VOLUME_AUDIO 1.0f // L-R signal (once demodulated) -#define STEREO_VOLUME_MODULATION 0.4f // L-R signal (on MPX) +#define STEREO_VOLUME_MODULATION 0.5f // L-R signal (on MPX) #ifdef PREEMPHASIS #define PREEMPHASIS_TAU 0.00005 // 50 microseconds, use 0.000075 if in america diff --git a/src/quadro_encoder.c b/src/quadro_encoder.c index b5bb4d1..297435e 100644 --- a/src/quadro_encoder.c +++ b/src/quadro_encoder.c @@ -20,13 +20,13 @@ #define INPUT_DEVICE "real_real_tx_audio_input.monitor" #define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback" #define BUFFER_SIZE 512 -#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed +#define CLIPPER_THRESHOLD 1.0f // Adjust this as needed #define MONO_VOLUME 0.45f // L+R Signal #define PILOT_VOLUME 0.0175f // 19 KHz Pilot -#define SIN38_VOLUME 0.35f -#define COS38_VOLUME 0.05f -#define SIN76_VOLUME 0.05f +#define SIN38_VOLUME 0.15f +#define COS38_VOLUME 0.15f +#define SIN76_VOLUME 0.15f #ifdef PREEMPHASIS #define PREEMPHASIS_TAU 0.00005 // 50 microseconds, use 0.000075 if in america diff --git a/src/sca_mod.c b/src/sca_mod.c index 92ff702..72005e4 100644 --- a/src/sca_mod.c +++ b/src/sca_mod.c @@ -18,7 +18,7 @@ #define INPUT_DEVICE "real_real_tx_audio_input.monitor" #define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback" #define BUFFER_SIZE 512 -#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed, this also limits deviation, so if you set this to 0.5 then the deviation will be limited to half +#define CLIPPER_THRESHOLD 0.75 // Adjust this as needed, this also limits deviation, so if you set this to 0.5 then the deviation will be limited to half #define VOLUME 0.03f // SCA Volume #define VOLUME_AUDIO 1.0f // SCA Audio volume diff --git a/src/stereo_coder.c b/src/stereo_coder.c index 3a124a7..5062cf1 100644 --- a/src/stereo_coder.c +++ b/src/stereo_coder.c @@ -18,7 +18,7 @@ #define INPUT_DEVICE "real_real_tx_audio_input.monitor" #define OUTPUT_DEVICE "alsa_output.platform-soc_sound.stereo-fallback" #define BUFFER_SIZE 512 -#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed +#define CLIPPER_THRESHOLD 0.45 // Adjust this as needed #define MONO_VOLUME 0.45f // L+R Signal #define PILOT_VOLUME 0.0175f // 19 KHz Pilot