diff options
author | Mike Brady <mikebrady@eircom.net> | 2019-04-15 11:13:51 +0100 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2019-04-15 11:13:51 +0100 |
commit | 16235071eedb286d53306336b1fcc5ef245dfdcd (patch) | |
tree | 93920797714beadc0977c3748a95a4097c382fa2 | |
parent | 042dd0d03670ace193dbf4163f7e25c8232edeb3 (diff) |
Default to "basic" stuffing even if soxr support is included.
-rw-r--r-- | scripts/shairport-sync.conf | 1 | ||||
-rw-r--r-- | shairport.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/shairport-sync.conf b/scripts/shairport-sync.conf index a979431..2bcba15 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 7e98bf2..cb9f132 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); |