mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 04:46:08 +00:00
Blocking-write design: the IO thread pulls one burst at a time from the sink and hands it to a blocking AAudio output stream, whose buffer paces the thread; latency comes from the stream's playback timestamp; with adaptive=1 the buffer grows a burst per underrun up to a cap. Same module arguments as before, so the daemon's config line is unchanged. build.sh compiles it with the NDK against the app's own libpulse* and a small config.h; a workflow checks it on every push.
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: Build AAudio sink module
|
|
|
|
# A quick check of tools/aaudio-sink on its own; the APK build compiles the same module into the
|
|
# audio bundle. Runs on pushes that touch the module.
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'tools/aaudio-sink/**'
|
|
- '.github/workflows/build-aaudio-sink.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: PulseAudio 13.0 source
|
|
run: |
|
|
set -euo pipefail
|
|
curl -fsSL -o pa.tar.gz https://github.com/pulseaudio/pulseaudio/archive/refs/tags/v13.0.tar.gz
|
|
mkdir -p pa13 && tar -xzf pa.tar.gz -C pa13 --strip-components=1
|
|
- name: Build
|
|
run: |
|
|
set -euo pipefail
|
|
export NDK="${ANDROID_NDK_LATEST_HOME:-${ANDROID_NDK_HOME:-$ANDROID_NDK_ROOT}}"
|
|
tools/aaudio-sink/build.sh "$PWD/pa13" "$PWD/module-aaudio-sink.so"
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: module-aaudio-sink
|
|
path: module-aaudio-sink.so
|