From: Mike Brady Date: Wed, 9 Jan 2019 14:15:05 +0000 (+0000) Subject: reduce thresholds towards a buffer time of 0.2 seconds rather than the 0.25 seconds... X-Git-Tag: 3.3RC0~66^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c958d506b1791cb2a745d16ec1811996b925fc2d;p=thirdparty%2Fshairport-sync.git reduce thresholds towards a buffer time of 0.2 seconds rather than the 0.25 seconds before. --- diff --git a/audio_alsa.c b/audio_alsa.c index 3411c160..2f491226 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -629,17 +629,17 @@ static int init(int argc, char **argv) { config.alsa_use_hardware_mute = 0; // don't use it by default config.audio_backend_latency_offset = 0; - config.audio_backend_buffer_desired_length = 0.25; + config.audio_backend_buffer_desired_length = 0.200; config.audio_backend_buffer_interpolation_threshold_in_seconds = - 0.175; // below this, basic interpolation will be used to save time. + 0.120; // below this, basic interpolation will be used to save time. config.alsa_maximum_stall_time = 0.200; // 200 milliseconds -- if it takes longer, it's a problem - config.audio_backend_silence_threshold = 0.060; //start sending silent frames if the delay goes below this time + config.audio_backend_silence_threshold = 0.040; //start sending silent frames if the delay goes below this time config.audio_backend_silence_scan_interval = 0.004; //check silence threshold this often stall_monitor_error_threshold = (uint64_t)1000000 * config.alsa_maximum_stall_time; // stall time max to microseconds; stall_monitor_error_threshold = (stall_monitor_error_threshold << 32) / 1000000; // now in fp form - debug(1, "stall_monitor_error_threshold is %" PRIX64 ", with alsa_maximum_stall_time of %f sec.", + debug(1, "stall_monitor_error_threshold is 0x%" PRIx64 ", with alsa_maximum_stall_time of %f sec.", stall_monitor_error_threshold, config.alsa_maximum_stall_time); stall_monitor_start_time = 0;