From: Mike Brady Date: Fri, 4 Jan 2019 17:06:21 +0000 (+0000) Subject: Add default values for the interpolation threshold X-Git-Tag: 3.3RC0~66^2~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e38fcd50fe09e0f4c74a7b32a570809cbba3da5;p=thirdparty%2Fshairport-sync.git Add default values for the interpolation threshold --- diff --git a/audio_jack.c b/audio_jack.c index 2f79bee1..9f9d0a0b 100644 --- a/audio_jack.c +++ b/audio_jack.c @@ -301,6 +301,7 @@ void *open_client_if_necessary_thread_function(void *arg) { int jack_init(__attribute__((unused)) int argc, __attribute__((unused)) char **argv) { config.audio_backend_latency_offset = 0; config.audio_backend_buffer_desired_length = 0.500; + config.audio_backend_buffer_interpolation_threshold_in_seconds = 0.25; // below this, soxr interpolation will not occur -- it'll be basic interpolation instead. config.jack_auto_client_open_interval = 1; // check every second // get settings from settings file first, allow them to be overridden by diff --git a/audio_pa.c b/audio_pa.c index ca79b4dc..48e4579d 100644 --- a/audio_pa.c +++ b/audio_pa.c @@ -70,6 +70,8 @@ static int init(__attribute__((unused)) int argc, __attribute__((unused)) char * // set up default values first config.audio_backend_buffer_desired_length = 0.35; + config.audio_backend_buffer_interpolation_threshold_in_seconds = 0.02; // below this, soxr interpolation will not occur -- it'll be basic interpolation instead. + config.audio_backend_latency_offset = 0; // get settings from settings file diff --git a/audio_sndio.c b/audio_sndio.c index d8037edb..511d90b3 100644 --- a/audio_sndio.c +++ b/audio_sndio.c @@ -99,6 +99,7 @@ static int init(int argc, char **argv) { devname = SIO_DEVANY; config.audio_backend_buffer_desired_length = 1.0; + config.audio_backend_buffer_interpolation_threshold_in_seconds = 0.25; // below this, soxr interpolation will not occur -- it'll be basic interpolation instead. config.audio_backend_latency_offset = 0; // get settings from settings file