From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 18 Jan 2023 11:02:42 +0000 (+0000) Subject: Set the high volume threshold to -16.0 and the timeout period to three hours. Hardwir... X-Git-Tag: 4.2.1d0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07211e7e0f364377fa8612fa55e92b1e0f5c044c;p=thirdparty%2Fshairport-sync.git Set the high volume threshold to -16.0 and the timeout period to three hours. Hardwired for the present. --- diff --git a/shairport.c b/shairport.c index dc7753ef..dd2edd4d 100644 --- a/shairport.c +++ b/shairport.c @@ -468,10 +468,10 @@ int parse_options(int argc, char **argv) { 1; // start outputting silence as soon as packets start arriving config.default_airplay_volume = -24.0; config.high_threshold_airplay_volume = - -20.0; // if the volume exceeds this, reset to this if idle for the + -16.0; // if the volume exceeds this, reset to the default volume if idle for the // limit_to_high_volume_threshold_time_in_minutes time config.limit_to_high_volume_threshold_time_in_minutes = - 1; // after this time, if the volume is higher, use the high_threshold_airplay_volume volume + 3 * 60; // after this time in minutes, if the volume is higher, use the default_airplay_volume volume // for new play sessions. config.fixedLatencyOffset = 11025; // this sounds like it works properly. config.diagnostic_drop_packet_fraction = 0.0; @@ -2276,7 +2276,7 @@ int main(int argc, char **argv) { if (sodium_init() < 0) { debug(1, "Can't initialise libsodium!"); } else { - debug(1, "libsodium initialised."); + debug(2, "libsodium initialised."); } // this code is based on @@ -2301,7 +2301,7 @@ int main(int argc, char **argv) { /* Tell Libgcrypt that initialization has completed. */ gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); - debug(1, "libgcrypt initialised."); + debug(2, "libgcrypt initialised."); #endif