From: Mike Brady Date: Sun, 21 Jun 2020 14:36:56 +0000 (+0100) Subject: Fix the default audio_backend_buffer_desired_length and move the exit messages to... X-Git-Tag: 3.3.7d12~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e01da543ce10f7b42bcfe259dea3d1d7b5c34ae;p=thirdparty%2Fshairport-sync.git Fix the default audio_backend_buffer_desired_length and move the exit messages to debiug level 1 --- diff --git a/shairport.c b/shairport.c index 1553bf23..808f3c6c 100644 --- a/shairport.c +++ b/shairport.c @@ -1400,15 +1400,15 @@ Actually, there is no stop_mpris_service() function. #ifdef CONFIG_LIBDAEMON if (this_is_the_daemon_process) { // this is the daemon that is exiting - debug(2,"libdaemon daemon exit"); + debug(1,"libdaemon daemon exit"); } else { if (config.daemonise) - debug(2,"libdaemon parent exit"); + debug(1,"libdaemon parent exit"); else - debug(2,"exit"); + debug(1,"exit"); } #else - debug(2,"exit"); + debug(1,"exit"); #endif } @@ -1528,7 +1528,7 @@ int main(int argc, char **argv) { // snprintf(config.service_name, 20 + 100, "Shairport Sync on %s", hostname); set_requested_connection_state_to_output( 1); // we expect to be able to connect to the output device - config.audio_backend_buffer_desired_length = 6615; // 0.15 seconds. + config.audio_backend_buffer_desired_length = 0.15; // seconds config.udp_port_base = 6001; config.udp_port_range = 10; config.output_format = SPS_FORMAT_S16_LE; // default