Allow a zero silent lead-in time.

This commit is contained in:
Mike Brady
2017-07-22 17:37:02 +02:00
parent 5e9b66b7e4
commit ede276d4af
4 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -180,9 +180,9 @@ void parse_general_audio_options(void) {
/* Get the desired length of the silent lead-in. */
if (config_lookup_float(config.cfg, "general.audio_backend_silent_lead_in_time",
&dvalue)) {
if ((dvalue < 0.05) || (dvalue > 4)) {
if ((dvalue < 0.0) || (dvalue > 4)) {
die("Invalid audio_backend_silent_lead_in_time \"%f\". It "
"must be between 0.050 and 4.0 seconds. Omit setting to use the default value, which is approximately the latency specified by the source (typically 2 seconds). A value greater than the latency is ignored.",
"must be between 0.0 and 4.0 seconds. Omit setting to use the default value",
dvalue);
} else {
config.audio_backend_silent_lead_in_time = dvalue;