aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jörg Krause <joerg.krause@embedded.rocks>2019-12-03 11:53:39 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-12-08 23:06:25 +0100
commit6e4acf980b48607a0d6ef98e6d229f6609e82af3 (patch)
treeb5e169429bdd739fc61a9b7976a6984fe039cf46
parentbe8f4a73abbf6a4648254cc8d52672d8a213e341 (diff)
downloadbuildroot-6e4acf980b48607a0d6ef98e6d229f6609e82af3.tar.gz
buildroot-6e4acf980b48607a0d6ef98e6d229f6609e82af3.tar.bz2
package/shairport-sync: add audio DSP convolution option
Already in version 3.1, shairport-sync added audio DSP convolution support. This optional feature requires the sndfile library. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/shairport-sync/Config.in6
-rw-r--r--package/shairport-sync/shairport-sync.mk5
2 files changed, 11 insertions, 0 deletions
diff --git a/package/shairport-sync/Config.in b/package/shairport-sync/Config.in
index 085a9ec77d..87f38a940d 100644
--- a/package/shairport-sync/Config.in
+++ b/package/shairport-sync/Config.in
@@ -20,6 +20,12 @@ config BR2_PACKAGE_SHAIRPORT_SYNC
if BR2_PACKAGE_SHAIRPORT_SYNC
+config BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION
+ bool "convolution support"
+ select BR2_PACKAGE_LIBSNDFILE
+ help
+ Enable audio DSP convolution support.
+
config BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR
bool "libsoxr support"
select BR2_PACKAGE_LIBSOXR
diff --git a/package/shairport-sync/shairport-sync.mk b/package/shairport-sync/shairport-sync.mk
index 3d9e909879..1ca56e9f0a 100644
--- a/package/shairport-sync/shairport-sync.mk
+++ b/package/shairport-sync/shairport-sync.mk
@@ -51,6 +51,11 @@ SHAIRPORT_SYNC_CONF_LIBS += -lz
endif
endif
+ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_CONVOLUTION),y)
+SHAIRPORT_SYNC_DEPENDENCIES += libsndfile
+SHAIRPORT_SYNC_CONF_OPTS += --with-convolution
+endif
+
ifeq ($(BR2_PACKAGE_SHAIRPORT_SYNC_LIBSOXR),y)
SHAIRPORT_SYNC_DEPENDENCIES += libsoxr
SHAIRPORT_SYNC_CONF_OPTS += --with-soxr