Add default values for the interpolation threshold

This commit is contained in:
Mike Brady
2019-01-04 17:06:21 +00:00
parent 459dd51a31
commit 5e38fcd50f
3 changed files with 4 additions and 0 deletions
+1
View 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
+2
View 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
+1
View 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