]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
reduce thresholds towards a buffer time of 0.2 seconds rather than the 0.25 seconds...
authorMike Brady <mikebrady@eircom.net>
Wed, 9 Jan 2019 14:15:05 +0000 (14:15 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 9 Jan 2019 14:15:05 +0000 (14:15 +0000)
audio_alsa.c

index 3411c1605bf7ff1165d3807c9584eab0caf62382..2f491226645d09807de2b707a6ce6eef03abc60f 100644 (file)
@@ -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;