]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Allow a latency offset of +/- 1.75 seconds.
authorMike Brady <mikebrady@eircom.net>
Sun, 14 Oct 2018 14:15:45 +0000 (15:15 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 14 Oct 2018 14:15:45 +0000 (15:15 +0100)
audio.c

diff --git a/audio.c b/audio.c
index 382d46d29e47f6646cee67c08c70b21e45a7d23e..a0b5f74d8c08efb2225a99b40eb4295527920ce9 100644 (file)
--- 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;