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

adjust volumes

This commit is contained in:
2024-12-30 19:58:39 +01:00
parent 269f42f115
commit d35696a5ef
2 changed files with 3 additions and 3 deletions

View File

@@ -3,4 +3,4 @@ STCode is a simple stereo encoder for FM, it uses pasimple and math to:
- Calculate mono signal from s16le ((L+R)/2)
- Generate the stereo pilot in phase to the stereo subcarrier
- Generate the stereo diffrence signal using DSB-SC
All that in about 3.5% cpu usage on a RPI-5!
All that in about 3.5% cpu usage on a RPI-5 (lpf makes it 10, but stereo tool has 3 threads which do 100% cpu usage anyway, one 200)!

View File

@@ -18,8 +18,8 @@
#define CLIPPER_THRESHOLD 0.425 // Adjust this as needed
#define MONO_VOLUME 0.45f // L+R Signal
#define PILOT_VOLUME 0.025f // 19 KHz Pilot
#define STEREO_VOLUME 0.45f // L-R signal
#define PILOT_VOLUME 0.0225f // 19 KHz Pilot
#define STEREO_VOLUME 0.35f // L-R signal
#ifdef PREEMPHASIS
#define PREEMPHASIS_TAU 0.00005 // 50 microseconds, use 0.000075 if in america