diff options
author | Mike Brady <mikebrady@eircom.net> | 2019-06-17 09:47:56 +0100 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2019-06-17 09:47:56 +0100 |
commit | 65abca2562cc86997b39c0589ad6c62abc949b70 (patch) | |
tree | 28d0d94a160e73b86396e38917bda0d850e2707e | |
parent | cd9982c43b0d0f8d952dbc2905590ef0a7d6398d (diff) |
change the threshold for turning off disable standby mode to more than 40 underruns in the first 100 writes.
-rw-r--r-- | audio_alsa.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/audio_alsa.c b/audio_alsa.c index 0913a17..bac1d4b 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -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; } } |