diff --git a/README.md b/README.md index 74813bb..0370f0c 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ now you know what you can pass as the args to the program, but theres a pipe sti `COA` - change compressor attack
`RDV` - gain but not audio but rds gain
`PAU` - pause, kinda, it will cancel out any audio, you could use `GAI 0` but you could forgor the old gain value, right?
-`PIV` - gain but not audio or rds but stereo pilot gain
+`PIV` - gain but not audio or rds but stereo pilot gain (default = 0.9)

and thats all, and remember kids dont pirate diff --git a/src/pifmrds/fm_mpx.c b/src/pifmrds/fm_mpx.c index db2d9b6..394565b 100644 --- a/src/pifmrds/fm_mpx.c +++ b/src/pifmrds/fm_mpx.c @@ -325,7 +325,7 @@ int fm_mpx_get_samples(float *mpx_buffer, int drds, float compressor_decay, floa if(1) { mpx_buffer[i] += 4.05*(out_left+out_right) + // Stereo sum signal 4.05 * carrier_38[phase_38] * (out_left-out_right) + // Stereo difference signal - (pilot_volume-0.1)*carrier_19[phase_19]; // Stereo pilot tone (doing 0.1 minus to balance it out, as by default its 0.9, but to make the 1.0 the normal value of the volume) + pilot_volume*carrier_19[phase_19]; // Stereo pilot tone (doing 0.1 minus to balance it out, as by default its 0.9, but to make the 1.0 the normal value of the volume) phase_19++; phase_38++; diff --git a/src/pifmrds/pi_fm_rds.cpp b/src/pifmrds/pi_fm_rds.cpp index 57e2711..b2d375e 100644 --- a/src/pifmrds/pi_fm_rds.cpp +++ b/src/pifmrds/pi_fm_rds.cpp @@ -259,7 +259,7 @@ int main(int argc, char **argv) { float compressor_max_gain_recip = 0.01; int enable_compressor = 1; float rds_volume = 1.0; - float pilot_volume = 1.0; + float pilot_volume = 0.9; int ta = 0; int tp = 0; int af_size = 0;