termux-packages/packages/libpulseaudio
Tom Yan fd69382e37 libpulseaudio: rewrite sles sink
This should work way better than the old code, as it makes use of
the buffer queue callback to do Enqueue(), which might be the only
nice/right way to use OpenSLES on Android. CPU usage is low and
RAM usage seems reasonable. No memory leak noticed. Tested with
mpv on my Oreo phone (wired and Bluetooth).

The latency was chosen base on Bluetooth audio requirement on Oreo.
Shouldn't be hard to make it configurable as a module param in the
future.

The new code has a known downside though, that is it doesn't really
support sink suspension, as in, silence will kept being written
to the audio device even when the sink is suspended, which may have
certain impact to battery time.

It's probably possible to catch the state change of the sink and
notify the buffer queue about it. It's just I don't want to bother
digging further at the moment.
2018-07-26 11:47:20 +02:00
..
build.sh libpulseaudio: Update from 12.1 to 12.2 2018-07-23 00:21:12 +02:00
daemon.conf.in.patch pulse segfault fixed and changed default config (#2044) 2018-02-01 22:24:34 +01:00
makefile.am.patch libpulseaudio: Update from 11.1 to 12.0 2018-06-21 22:31:58 +02:00
module-sles-sink.c libpulseaudio: rewrite sles sink 2018-07-26 11:47:20 +02:00
pulseaudio.subpackage.sh alsa-{lib,utils,plugins} and pulseaudio packages (#825) 2017-03-13 22:51:36 +01:00
tmpdir.patch alsa-{lib,utils,plugins} and pulseaudio packages (#825) 2017-03-13 22:51:36 +01:00