Commit Graph

5457 Commits

Author SHA1 Message Date
Tom Yan 8025f606e9 libpulseaudio: always use u for userdata 2018-07-26 11:47:20 +02:00
Tom Yan 9006223783 libpulseaudio: avoid some assertion failures due to race condition 2018-07-26 11:47:20 +02:00
Tom Yan 36c4ffb4bf libpulseaudio: make latency configurable 2018-07-26 11:47:20 +02:00
Tom Yan 83ba79c105 libpulseaudio: support suspend on idle
Turns out it's pretty easy to implement. Now the buffer queue will
stop requesting for data once the sink is suspended on idle. No
more power wasted.

Note that it is natural that there would be a bit of extra delay
when resume playback after the sink is suspended. In case it is
wanted to be avoided, make sure the module-suspend-on-idle is not
loaded.
2018-07-26 11:47:20 +02:00
Tom Yan 6144f8653f libpulseaudio: fix distortions occur with multiple sink inputs 2018-07-26 11:47:20 +02:00
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
Fredrik Fornwall f06727719f utf8proc: Update from 2.1.1 to 2.2.0 2018-07-25 11:25:14 +02:00
Fredrik Fornwall 75c0baf3c5 syncthing: Update from 0.14.48 to 0.14.49 2018-07-25 11:23:16 +02:00
Fredrik Fornwall 7ebbd42b04 fribidi: Update from 1.0.4 to 1.0.5 2018-07-25 11:19:34 +02:00
Fredrik Fornwall de07382d9c file: Update from 5.33 to 5.34 2018-07-25 11:19:21 +02:00
Fredrik Fornwall 542cb76e85 gegl: Update from 0.4.4 to 0.4.6 2018-07-25 10:29:18 +02:00
Fredrik Fornwall b126c3f2d8 babl: Update from 0.1.52 to 0.1.54 2018-07-25 10:29:18 +02:00
Tom Yan 4abe3e12d3 mpv: Update from 0.28.2 to 0.29.0 2018-07-25 10:29:06 +02:00
Tom Yan 7c3577e5b0 mpv: allow s32 and float output
As they are supported since API 21. If they don't work in certain
devices, mpv can still be forced to output in s16 only with an
option.
2018-07-25 10:29:06 +02:00
Tom Yan 5f34372f2e mpv: remove audio-buffer=0.5 hack from mpv.conf
The hack should no longer be necessary, as 0.29.0 includes a few
commits from me that makes the opensles output driver work more
properly.

Also include an extra patch that allows the buffer size to either
be increased and decreased (and done more properly).
2018-07-25 10:29:06 +02:00
Tom Yan 3bf686ca29 mpv: build without --disable-android again
switch to a patch that I have proposed to upstream
2018-07-25 10:29:06 +02:00
Fredrik Fornwall 10b5781505 sox: Rebuild after pulseaudio update 2018-07-23 14:15:56 +02:00
Fredrik Fornwall 2f26f4940f Replace curl call with termux_download 2018-07-23 14:13:33 +02:00
Fredrik Fornwall 3e77a3b669 Remove old comment 2018-07-23 14:07:46 +02:00
Fredrik Fornwall a2e6298d3b libicu: Switch to fossies.org for downloading 2018-07-23 14:04:22 +02:00
Fredrik Fornwall 2dcd95485a busybox: Fix building without <crypt.h> 2018-07-23 01:49:27 +02:00
Fredrik Fornwall 7634072451 run-docker.sh: Allow multiple containers
By defining CONTAINER_NAME one can now build from multiple containers:

    CONTAINER_NAME=builder1 ./scripts/run-docker.sh
    CONTAINER_NAME=builder2 ./scripts/run-docker.sh
    ...
2018-07-23 01:34:06 +02:00
Fredrik Fornwall 1200b5a072 busybox: Update from 1.28.4 to 1.29.1 2018-07-23 01:33:02 +02:00
Fredrik Fornwall 4474709169 mariadb: Update from 10.3.7 to 10.3.8 2018-07-23 01:26:38 +02:00
Fredrik Fornwall fa94d6ba31 imagemagick: Update from 7.0.8.6 to 7.0.8.7 2018-07-23 01:26:01 +02:00
Fredrik Fornwall b599d4a7d3 libgrpc: Update from 1.13.0 to 1.13.1 2018-07-23 00:48:35 +02:00
Fredrik Fornwall 6a53bdde21 php: Update from 7.2.7 to 7.2.8 2018-07-23 00:37:56 +02:00
Fredrik Fornwall 1c4195d5d3 libpulseaudio: Update from 12.1 to 12.2 2018-07-23 00:21:12 +02:00
Fredrik Fornwall 952620e42a poppler: Update from 0.66.0 to 0.67.0 2018-07-23 00:14:22 +02:00
Fredrik Fornwall c98acd554a subversion: Update from 1.10.0 to 1.10.2 2018-07-23 00:07:11 +02:00
Fredrik Fornwall 56d62e012a ffmpeg: Update from 4.0.1 to 4.0.2 2018-07-23 00:04:56 +02:00
Fredrik Fornwall a798b6ed84 pango: Update from 1.42.1 to 1.42.2 2018-07-22 23:47:21 +02:00
Fredrik Fornwall e08db41ae9 libxapian: Update from 1.4.6 to 1.4.7 2018-07-22 23:47:00 +02:00
Fredrik Fornwall 07df3fdc96 mutt: Update from 1.10.0 to 1.10.1 2018-07-22 23:34:54 +02:00
Fredrik Fornwall be6e9c36af harfbuzz: Update from 1.8.3 to 1.8.4 2018-07-22 23:20:43 +02:00
Fredrik Fornwall 63686dc748 libpng: Update from 1.6.34 to 1.6.35 2018-07-22 23:20:15 +02:00
Fredrik Fornwall ddef406a8d tig: Update from 2.3.3 to 2.4.0 2018-07-22 23:05:25 +02:00
Fredrik Fornwall d33909e9d1 python: Update from 3.6.5 to 3.6.6 2018-07-21 04:49:18 +02:00
Fredrik Fornwall 4f784280d5 binutils: Update from 2.31 to 2.31.1 2018-07-21 04:10:21 +02:00
Fredrik Fornwall ddc80a043b vim: Update from 8.1.0150 to 8.1.0200 2018-07-21 04:09:37 +02:00
Fredrik Fornwall 416140f0c8 neovim: Update from 0.3.0 to 0.3.1 2018-07-21 03:12:53 +02:00
Michał Bednarski 0354a98488 proot: Update for setgid() checking euid==0 2018-07-21 03:01:48 +02:00
Fredrik Fornwall 3fd7c39639 valac: Update from 0.40.7 to 0.40.8 2018-07-17 10:23:58 +02:00
Fredrik Fornwall 5225f05e38 squid: Update from 3.5.27 to 3.5.28 2018-07-17 10:23:01 +02:00
Fredrik Fornwall b079234ed4 libgnutls: Update from 3.5.18 to 3.5.19 2018-07-17 10:23:01 +02:00
Fredrik Fornwall f9dda7c381 libnpth: Update from 1.5 to 1.6 2018-07-17 10:23:01 +02:00
Matthew Klein 6274ffafe8 emacs: remove ctags.1.gz after building
This man page conflicts with the one included with Universal Ctags (just
like the ungziped one), so exclude it as well.
2018-07-17 10:22:50 +02:00
Michał Bednarski 3cb559afa5 proot: Update for renameat2 and libaudit fixes
Fixes termux/proot#21
Fixes termux/proot#25
2018-07-16 21:42:18 +02:00
Fredrik Fornwall 73e2c4f06b weechat: Update from 2.1 to 2.2 2018-07-15 18:51:01 +02:00
Fredrik Fornwall 5dc006b57d radare2: Update from 2.6.0 to 2.7.0 2018-07-15 18:50:42 +02:00