]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add default values for the interpolation threshold
authorMike Brady <mikebrady@eircom.net>
Fri, 4 Jan 2019 17:06:21 +0000 (17:06 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 4 Jan 2019 17:06:21 +0000 (17:06 +0000)
audio_jack.c
audio_pa.c
audio_sndio.c

index 2f79bee1a4055f8ccd09b9604a82b9caaa4e84e5..9f9d0a0ba47fe9d104c131e9eeed57e01f8f2030 100644 (file)
@@ -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
index ca79b4dc47afbe540bcf617fdd58ed7fc3da75e9..48e4579d427b80dbd8c7a953a662c155c966e248 100644 (file)
@@ -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
index d8037edb3fa25b216c3bfa308de2c018e707afa1..511d90b32055b7904e5d7a67427911ef9f2e7ac3 100644 (file)
@@ -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