mirror of https://github.com/lwvmobile/dsd-fme.git
M17: Fix Compiler Error if librtlsdr not found / installed;
This commit is contained in:
parent
dbc645e7b0
commit
3041713eb3
|
|
@ -1897,13 +1897,13 @@ void encodeM17STR(dsd_opts * opts, dsd_state * state)
|
||||||
voice2[i] = sample;
|
voice2[i] = sample;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
opts->rtl_rms = rtl_return_rms();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//read in RMS value for vox function; NOTE: will not work correctly SOCAT STDIO TCP due to blocking when no samples to read
|
//read in RMS value for vox function; NOTE: will not work correctly SOCAT STDIO TCP due to blocking when no samples to read
|
||||||
if (opts->audio_in_type == 3) opts->rtl_rms = rtl_return_rms();
|
if (opts->audio_in_type != 3)
|
||||||
else opts->rtl_rms = raw_rms(voice1, nsam, 1) / 2; //dividing by two so mic isn't so sensitive on vox
|
opts->rtl_rms = raw_rms(voice1, nsam, 1) / 2; //dividing by two so mic isn't so sensitive on vox
|
||||||
|
|
||||||
//low pass filter
|
//low pass filter
|
||||||
if (opts->use_lpf == 1)
|
if (opts->use_lpf == 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue