From: Mike Brady Date: Sun, 14 Oct 2018 14:15:45 +0000 (+0100) Subject: Allow a latency offset of +/- 1.75 seconds. X-Git-Tag: 3.3RC0~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72fa29b6459c178f7d49317c01aa1c714313f9eb;p=thirdparty%2Fshairport-sync.git Allow a latency offset of +/- 1.75 seconds. --- diff --git a/audio.c b/audio.c index 382d46d2..a0b5f74d 100644 --- a/audio.c +++ b/audio.c @@ -171,9 +171,9 @@ void parse_general_audio_options(void) { /* Get the latency offset in seconds. */ if (config_lookup_float(config.cfg, "general.audio_backend_latency_offset_in_seconds", &dvalue)) { - if ((dvalue < -1.0) || (dvalue > 1.5)) { + if ((dvalue < -1.75) || (dvalue > 1.75)) { die("Invalid audio_backend_latency_offset_in_seconds \"%f\". It " - "should be between -1.0 and +1.5, default is 0 seconds", + "should be between -1.75 and +1.75, default is 0 seconds", dvalue); } else { config.audio_backend_latency_offset = dvalue;