Analog Gain Has Own Variable; Ncurses Keys; Misc;

This commit is contained in:
lwvmobile
2024-03-21 10:12:04 -04:00
parent 0debcc647e
commit eadf3fdf23
4 changed files with 26 additions and 10 deletions

View File

@@ -583,6 +583,7 @@ initOpts (dsd_opts * opts)
opts->mbe_out_fR = NULL; //second slot on a TDMA system
opts->audio_gain = 0;
opts->audio_gainR = 0;
opts->audio_gainA = 50.0f; //scale of 1 - 100
opts->audio_out = 1;
opts->wav_out_file[0] = 0;
opts->wav_out_fileR[0] = 0;
@@ -2023,6 +2024,7 @@ main (int argc, char **argv)
case 'g':
sscanf (optarg, "%f", &opts.audio_gain);
opts.audio_gainA = opts.audio_gain; //straight assignment
if (opts.audio_gain < (float) 0 )
{
fprintf (stderr,"Disabling audio out gain setting\n");