Tom Yan 6 years ago
committed by Fredrik Fornwall
parent
commit
2616d11d54
  1. 2
      packages/libpulseaudio/build.sh
  2. 2
      packages/libpulseaudio/module-sles-sink.c
  3. 1
      packages/mpv/build.sh
  4. 13
      packages/mpv/sles_numbuffers.patch

2
packages/libpulseaudio/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries" TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_VERSION=12.2 TERMUX_PKG_VERSION=12.2
TERMUX_PKG_REVISION=3 TERMUX_PKG_REVISION=4
TERMUX_PKG_SHA256=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055 TERMUX_PKG_SHA256=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr" TERMUX_PKG_DEPENDS="libltdl, libsndfile, libandroid-glob, libsoxr"

2
packages/libpulseaudio/module-sles-sink.c

@ -144,7 +144,7 @@ static int pa_init_sles_player(struct userdata *u, SLint32 sl_rate)
SLDataLocator_BufferQueue locator_bufferqueue; SLDataLocator_BufferQueue locator_bufferqueue;
locator_bufferqueue.locatorType = SL_DATALOCATOR_BUFFERQUEUE; locator_bufferqueue.locatorType = SL_DATALOCATOR_BUFFERQUEUE;
locator_bufferqueue.numBuffers = 1; locator_bufferqueue.numBuffers = 8;
if (sl_rate < 8000 || sl_rate > 192000) { if (sl_rate < 8000 || sl_rate > 192000) {
pa_log("Incompatible sample rate"); pa_log("Incompatible sample rate");

1
packages/mpv/build.sh

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_HOMEPAGE=https://mpv.io/
TERMUX_PKG_DESCRIPTION="Command-line media player" TERMUX_PKG_DESCRIPTION="Command-line media player"
TERMUX_PKG_VERSION=0.29.0 TERMUX_PKG_VERSION=0.29.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319 TERMUX_PKG_SHA256=772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="ffmpeg, openal-soft, libandroid-glob" TERMUX_PKG_DEPENDS="ffmpeg, openal-soft, libandroid-glob"

13
packages/mpv/sles_numbuffers.patch

@ -0,0 +1,13 @@
diff --git a/audio/out/ao_opensles.c b/audio/out/ao_opensles.c
index ea48de892e..2e637adf82 100644
--- a/audio/out/ao_opensles.c
+++ b/audio/out/ao_opensles.c
@@ -129,7 +129,7 @@ static int init(struct ao *ao)
CHK((*p->output_mix)->Realize(p->output_mix, SL_BOOLEAN_FALSE));
locator_buffer_queue.locatorType = SL_DATALOCATOR_BUFFERQUEUE;
- locator_buffer_queue.numBuffers = 1;
+ locator_buffer_queue.numBuffers = 8;
pcm.formatType = SL_DATAFORMAT_PCM;
pcm.numChannels = 2;
Loading…
Cancel
Save