Allow a zero silent lead-in time.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user