]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
change the threshold for turning off disable standby mode to more than 40 underruns...
authorMike Brady <mikebrady@eircom.net>
Mon, 17 Jun 2019 08:47:56 +0000 (09:47 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 17 Jun 2019 08:47:56 +0000 (09:47 +0100)
audio_alsa.c

index 0913a174bb0b1db060eb2b951954b48f0b077b88..bac1d4b6226b33c56854176aab830522ad20cb9c 100644 (file)
@@ -219,8 +219,6 @@ int precision_delay_available() {
         } else {
           precision_delay_available_status = YNDK_NO;
           debug(2,"alsa: precision delay timing is not available.");
-          // if (config.disable_standby_mode != disable_standby_off)
-          //  inform("Note: disable_standby_mode has been turned off because the output device is not capable of precision delay timing.");
         }
       }
     }
@@ -1972,8 +1970,8 @@ void *alsa_buffer_monitor_thread_code(__attribute__((unused)) void *arg) {
               char errorstring[1024];
               strerror_r(-ret, (char *)errorstring, sizeof(errorstring));
               debug(2, "alsa: alsa_buffer_monitor_thread_code error %d (\"%s\") writing %d samples to alsa device -- %d errors in %d trials.", ret, (char *)errorstring, frames_of_silence, error_count, frame_count);
-              if ((error_count > 20) && (frame_count < 50)) {
-                warn("disable_standby_mode has been turned off because too many underruns occurred. Are you outputting to a virtual device or running in a virtual machine?");
+              if ((error_count > 40) && (frame_count < 100)) {
+                warn("disable_standby_mode has been turned off because too many underruns occurred. Is Shairport Sync outputting to a virtual device or running in a virtual machine?");
                 error_threshold_exceeded = 1;
               }
             }