Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libpulseaudio: add module-aaudio-sink #2734

Merged
merged 3 commits into from
Aug 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/libpulseaudio/aaudio.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/src/Makefile.am~ b/src/Makefile.am
index f4464d2..eebcf02 100644
--- a/src/Makefile.am~
+++ b/src/Makefile.am
@@ -1495,6 +1495,12 @@ bin_SCRIPTS += utils/qpaeq
endif
endif

+modlibexec_LTLIBRARIES += module-aaudio-sink.la
+module_aaudio_sink_la_SOURCES = modules/aaudio/module-aaudio-sink.c
+module_aaudio_sink_la_LDFLAGS = $(MODULE_LDFLAGS) -laaudio
+module_aaudio_sink_la_LIBADD = $(MODULE_LIBADD)
+module_aaudio_sink_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_aaudio_sink
+
# Simple protocol

module_simple_protocol_tcp_la_SOURCES = modules/module-protocol-stub.c
10 changes: 8 additions & 2 deletions packages/libpulseaudio/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_VERSION=12.2
TERMUX_PKG_REVISION=4
TERMUX_PKG_REVISION=5
TERMUX_PKG_SHA256=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr"
Expand All @@ -17,13 +17,18 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-neon-opt
--disable-memfd
--disable-gsettings
--bindir=$TERMUX_PREFIX/libexec
ax_cv_PTHREAD_PRIO_INHERIT=no"
ax_cv_PTHREAD_PRIO_INHERIT=no
ac_cv_func_posix_madvise=no"
TERMUX_PKG_CONFFILES="etc/pulse/client.conf etc/pulse/daemon.conf etc/pulse/default.pa etc/pulse/system.pa"
TERMUX_PKG_API_LEVEL=26

termux_step_pre_configure () {
mkdir $TERMUX_PKG_SRCDIR/src/modules/sles
cp $TERMUX_PKG_BUILDER_DIR/module-sles-sink.c $TERMUX_PKG_SRCDIR/src/modules/sles
mkdir $TERMUX_PKG_SRCDIR/src/modules/aaudio
cp $TERMUX_PKG_BUILDER_DIR/module-aaudio-sink.c $TERMUX_PKG_SRCDIR/src/modules/aaudio
intltoolize --automake --copy --force
CFLAGS+=" -D__ANDROID_API__=21"
LDFLAGS+=" -llog -landroid-glob"
}

Expand All @@ -39,6 +44,7 @@ termux_step_post_make_install () {
sed -i $TERMUX_PREFIX/etc/pulse/default.pa \
-e '/^load-module module-detect$/s/^/#/'
echo "load-module module-sles-sink" >> $TERMUX_PREFIX/etc/pulse/default.pa
echo "#load-module module-aaudio-sink" >> $TERMUX_PREFIX/etc/pulse/default.pa

if [ "$TERMUX_ARCH_BITS" = 32 ]; then
SYSTEM_LIB=lib
Expand Down
14 changes: 0 additions & 14 deletions packages/libpulseaudio/makefile.am.patch

This file was deleted.

Loading