From: Mike Brady Date: Mon, 15 Apr 2019 10:13:51 +0000 (+0100) Subject: Default to "basic" stuffing even if soxr support is included. X-Git-Tag: 3.3rc4~2^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16235071eedb286d53306336b1fcc5ef245dfdcd;p=thirdparty%2Fshairport-sync.git Default to "basic" stuffing even if soxr support is included. --- diff --git a/scripts/shairport-sync.conf b/scripts/shairport-sync.conf index a979431c..2bcba159 100644 --- a/scripts/shairport-sync.conf +++ b/scripts/shairport-sync.conf @@ -15,6 +15,7 @@ general = // %V for the full version string, e.g. 3.3-OpenSSL-Avahi-ALSA-soxr-metadata-sysconfdir:/etc // Overall length can not exceed 50 characters. Example: "Shairport Sync %v on %H". // password = "secret"; // leave this commented out if you don't want to require a password +// for this "soxr" option to be available in the next setting, to be operative, Shairport Sync must be built with the configuration flag --with-soxr // interpolation = "basic"; // aka "stuffing". Default is "basic", alternative is "soxr". Use "soxr" only if you have a reasonably fast processor. // Note: if Shairport Sync is build with the --with-soxr configuration flag, interpolation will be "soxr" by default. // output_backend = "alsa"; // Run "shairport-sync -h" to get a list of all output_backends, e.g. "alsa", "pipe", "stdout". The default is the first one. diff --git a/shairport.c b/shairport.c index 7e98bf27..cb9f132c 100644 --- a/shairport.c +++ b/shairport.c @@ -1312,11 +1312,15 @@ int main(int argc, char **argv) { 0.002; // this number of seconds of timing error before attempting to correct it. config.buffer_start_fill = 220; config.port = 5000; + +/* #ifdef CONFIG_SOXR config.packet_stuffing = ST_soxr; // use soxr interpolation by default if support has been included #else config.packet_stuffing = ST_basic; // simple interpolation or deletion #endif +*/ + // char hostname[100]; // gethostname(hostname, 100); // config.service_name = malloc(20 + 100);