Reconfigure RTL Volume Multiplier to be more dynamic;

This commit is contained in:
lwvmobile
2024-04-01 11:20:25 -04:00
parent f35aa046c1
commit fe9b5b51e8
6 changed files with 16 additions and 3 deletions

View File

@@ -208,18 +208,21 @@ void edacs_analog(dsd_opts * opts, dsd_state * state, int afs, unsigned char lcn
for (i = 0; i < 960; i++)
{
get_rtlsdr_sample(&sample, opts, state);
sample *= opts->rtl_volume_multiplier;
analog1[i] = sample;
}
for (i = 0; i < 960; i++)
{
get_rtlsdr_sample(&sample, opts, state);
sample *= opts->rtl_volume_multiplier;
analog2[i] = sample;
}
for (i = 0; i < 960; i++)
{
get_rtlsdr_sample(&sample, opts, state);
sample *= opts->rtl_volume_multiplier;
analog3[i] = sample;
}
//the rtl rms value works properly without needing a 'hard' squelch value