mpd-full: enable soxr
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Sun, 20 Feb 2022 12:48:38 +0000 (21:48 +0900)
committerRosen Penev <rosenp@gmail.com>
Thu, 24 Feb 2022 22:33:03 +0000 (14:33 -0800)
Enable soxr resampler library.

"internal" resampler is really poor quality and libsamplerate
library is too heavy for tiny system.

Signed-off-by: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
sound/mpd/Makefile

index 80ef37df2d3ff91a5e02dc1b511da8cd83c4c2ea..41b53788f77300ae83215474f241e4d9a4845b0f 100644 (file)
@@ -49,7 +49,7 @@ define Package/mpd-full
 $(call Package/mpd/Default)
   TITLE+= (full)
   DEPENDS+= +AUDIO_SUPPORT:pulseaudio-daemon +libvorbis +libmms +libnpupnp +libshout +yajl \
-            +libffmpeg +lame-lib +!BUILD_PATENTED:libmad
+            +libffmpeg +lame-lib +libsoxr +!BUILD_PATENTED:libmad
   PROVIDES:=mpd
   VARIANT:=full
 endef
@@ -156,7 +156,6 @@ MESON_ARGS += \
        -Dshine=disabled \
        -Dwave_encoder=true \
        -Dlibsamplerate=disabled \
-       -Dsoxr=disabled \
        -Dalsa=$(if $(CONFIG_AUDIO_SUPPORT),en,dis)abled \
        -Dao=disabled \
        -Dhttpd=true \
@@ -193,7 +192,8 @@ ifeq ($(BUILD_VARIANT),full)
        -Dshout=enabled \
        -Dyajl=enabled \
        -Dvorbisenc=enabled \
-       -Dlame=enabled
+       -Dlame=enabled \
+       -Dsoxr=enabled
 
 ifeq ($(CONFIG_AUDIO_SUPPORT),y)
        TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/pulseaudio
@@ -216,7 +216,8 @@ ifeq ($(BUILD_VARIANT),mini)
        -Dpulse=disabled \
        -Drecorder=false \
        -Dshout=disabled \
-       -Dyajl=disabled
+       -Dyajl=disabled \
+       -Dsoxr=disabled
 endif
 
 define Package/mpd/install