]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Set stall threshold to 200 ms.
authorMike Brady <mikebrady@eircom.net>
Mon, 10 Dec 2018 12:38:48 +0000 (12:38 +0000)
committerMike Brady <mikebrady@eircom.net>
Mon, 10 Dec 2018 12:38:48 +0000 (12:38 +0000)
audio_alsa.c

index 3eff6fbed80cf63874dc6d756d533fd25baec379..d1fe42a1dcc160516ccf3267c271af476c0113f3 100644 (file)
@@ -1069,11 +1069,11 @@ int delay(long *the_delay) {
     if ((stall_monitor_start_time != 0) && (stall_monitor_frame_count == *the_delay)) {
       // hasn't outputted anything since the last call to delay()
       int64_t time_stalled = stall_monitor_time_now - stall_monitor_start_time;
-      int64_t stall_monitor_error_threshold = 1000; // microseconds;
+      int64_t stall_monitor_error_threshold = 200000; // microseconds;
       stall_monitor_error_threshold = (stall_monitor_error_threshold << 32) / 1000000; // now in fp form
       if (time_stalled > stall_monitor_error_threshold) {
         if (stall_monitor_error_notified == 0) {
-          debug(1, "alsa output device appears to be stalled -- no output in %8.2 us.",(1000000.0 * stall_monitor_error_threshold) / (uint64_t)0x100000000);
+          debug(1, "alsa output device stalled -- no output in %8.2f us.",(1000000.0 * stall_monitor_error_threshold) / (uint64_t)0x100000000);
           stall_monitor_error_notified = 1;
         }
       }