From: Mike Brady Date: Wed, 8 Aug 2018 08:04:58 +0000 (+0100) Subject: Fix a bug whereby libsoxr-required code wasn't included, causing soxr interpolation... X-Git-Tag: 3.3RC0~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4590b08e62eac5b48fd8e70eef6743109b99e27f;p=thirdparty%2Fshairport-sync.git Fix a bug whereby libsoxr-required code wasn't included, causing soxr interpolation to be disabled. --- diff --git a/dbus-service.c b/dbus-service.c index 90e68a08..03afadb0 100644 --- a/dbus-service.c +++ b/dbus-service.c @@ -662,21 +662,31 @@ static void on_dbus_name_acquired(GDBusConnection *connection, const gchar *name config.loudness_reference_volume_db); #ifdef HAVE_APPLE_ALAC - if (config.use_apple_decoder == 0) + if (config.use_apple_decoder == 0) { shairport_sync_set_alacdecoder(SHAIRPORT_SYNC(shairportSyncSkeleton), "hammerton"); - else + debug(1, ">> ALACDecoder set to \"hammerton\""); + } else { shairport_sync_set_alacdecoder(SHAIRPORT_SYNC(shairportSyncSkeleton), "apple"); + debug(1, ">> ALACDecoder set to \"apple\""); + } #else shairport_sync_set_alacdecoder(SHAIRPORT_SYNC(shairportSyncSkeleton), "hammerton"); + debug(1, ">> ALACDecoder set to \"hammerton\""); + #endif -#ifdef HAVE_SOXR - if (config.packet_stuffing == ST_basic) +#ifdef HAVE_LIBSOXR + if (config.packet_stuffing == ST_basic) { shairport_sync_set_interpolation(SHAIRPORT_SYNC(shairportSyncSkeleton), "basic"); - else + debug(1, ">> interpolation set to \"basic\" (soxr support built in)"); + } else { shairport_sync_set_interpolation(SHAIRPORT_SYNC(shairportSyncSkeleton), "soxr"); + debug(1, ">> interpolation set to \"soxr\""); + } #else shairport_sync_set_interpolation(SHAIRPORT_SYNC(shairportSyncSkeleton), "basic"); + debug(1, ">> interpolation set to \"basic\" (no soxr support)"); + #endif if (config.volume_control_profile == VCP_standard)