• v0.2.0 41d07f3f1c

    Vratk0529 released this 2026-08-31 17:46:02 +00:00 | 6 commits to main since this release

    One feature since v0.1.0, for machines that move.

    Buffer for WiFi

    A tickbox under Stream that asks the board how deep to make the jitter
    buffer for this machine's receiver:

    • off — 20 ms, about 115 ms end to end. For a wired link that loses nothing.
    • on — 800 ms. Rides out the radio dropping out while you carry a laptop
      downstairs, at the cost of being that far behind.

    It is per machine, which is the point: raising the buffer on the board globally
    would hand the wired latency back for everyone. Your desktop stays immediate
    while the laptop buys itself room.

    The setting is remembered by the board against this machine's device id — the
    same way your room routing is — so a laptop that settled on a deep buffer gets
    it back the next time it claims a slot, without asking again.

    Both sizes are configurable:

    [latency]
    low_ms = 20
    buffered_ms = 800
    

    Switching is audible. The board's rtpjitterbuffer will not accept a new
    latency while it is playing, so applying one restarts that device's receiver —
    a gap of a few hundred milliseconds. That is why it is a deliberate tickbox and
    not something adaptive, and why there are two values rather than a slider.

    The tickbox shows what the board reports, never what the app asked for. The
    two differ while a change is in flight, and permanently if the board clamps a
    value, so showing our own request would be a small lie. On a board too old to
    report it, the tickbox stays greyed out rather than claiming a buffer size it
    has no evidence for.

    Requires a matching board

    This needs the daemon side, which adds the homeaudio/device/{id}/latency
    command — stm32mp1xx-network-audio#2.
    Against an older board the app runs exactly as 0.1.0 did, with the tickbox
    inactive.

    Upgrading

    Nothing to do. A config.toml written by 0.1.0 loads unchanged and picks up
    [latency] at 20/800; there is a test for exactly that.

    Installing

    Debian 12 / Ubuntu 22.04+

    sudo apt install ./audiosbc_0.2.0-1_amd64.deb
    

    Arch

    cd packaging && makepkg -si
    

    The .deb is built in a Debian 12 container and needs no glibc newer than
    2.34, so it runs on Debian 12, Ubuntu 22.04+ and Arch alike. It is
    install-tested in a clean Debian 12 container before release: the binary
    starts, and every GStreamer plugin it needs comes from a declared dependency.
    audiosbc-0.2.0-x86_64-linux-gnu is that same binary on its own, for
    distributions where the .deb is no use.

    Downloads