• v0.2.1 963d451a3e

    vratk0529 released this 2026-10-17 11:59:45 +00:00 | 2 commits to main since this release

    A bug-fix release.

    Fixed: stream dropping a quarter of the audio on some launches

    On some starts the board played the stream in bursts, about 500 ms of sound then 163 ms of silence, over and over and at the wrong pitch, for the whole session. Relaunching the app would fix it or not, apparently at random (about five launches in seven on a desktop whose PipeWire graph runs a 256-frame quantum).

    The capture was getting no buffer from PipeWire on exactly one cycle in four, so only 36 000 of every 48 000 samples a second were sent. pipewiresrc runs its capture as an async follower and by default negotiates a single buffer; it now asks for eight. Checked over 50 stream starts in 6 launches: no gaps.

    Changed: tray icon

    The streaming icon was audio-volume-high, the same as the system volume applet next to it. It is now a sound card (audio-card) when idle and broadcast waves (network-wireless-hotspot) while streaming.

    Downloads

    • audiosbc_0.2.1-1_amd64.deb: Debian 12 / Ubuntu 22.04 and newer (built against Debian 12's glibc).
    • audiosbc-0.2.1-x86_64-linux-gnu: the bare binary, built on Arch.
    Downloads
  • 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
  • v0.1.0 fb27fb990f

    Vratk0529 released this 2026-08-31 15:54:03 +00:00 | 9 commits to main since this release

    First release. A GTK4 desktop app that streams this machine's audio to the
    STM32MP157 whole-house audio board
    over RTP/Opus, and drives the board's MQTT control surface. It replaces
    rtp-send.sh and configures itself: room names, volume ceilings, the board's
    address, the RTP format and which UDP port to send to are all discovered at
    runtime. The only thing you supply is how to reach the MQTT broker.

    What's in it

    • A real virtual sink. "AudioSBC" appears in your sound settings like any
      other output; route any application to it. Unloaded when streaming stops, and
      any left behind by a crash are swept up on the next start.
    • Claims a receiver slot. The board keeps a pool of five receivers rather
      than one hardwired per machine. The app claims one on connect and gives it
      back when it closes — or when it crashes, via an MQTT last will, so a slot is
      never stranded.
    • Rooms, volume and mute, discovered from the board's retained state and
      clamped to each zone's ceiling.
    • Click-to-talk intercom with ducking: the button latches down and turns red
      while the microphone is open, and music in that room returns to exactly its
      previous level afterwards. Set intercom.enabled = false to remove it
      entirely, which also stops the app claiming a second slot it would never use.
    • Health panel — CamillaDSP state, router liveness, amp faults.
    • Tray icon and start-on-login, via StatusNotifierItem.
    • Refuses to start twice. Two copies shared a client id and a UDP port, and
      behaved accordingly.

    Installing

    Debian 12 / Ubuntu 22.04+ — download the .deb below and

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

    Arch

    cd packaging && makepkg -si
    

    From source — needs GTK4, GStreamer (base + good + bad for Opus) and dbus
    development packages:

    cargo build --release
    

    Configuring

    ~/.config/audiosbc/config.toml is written on first run; fill in the broker
    host, username and password. Everything else has a working default and is
    documented in the README.

    Notes

    • The .deb is built in a Debian 12 container and its binary needs no glibc
      newer than 2.34, so it runs on Debian 12, Ubuntu 22.04+ and Arch alike.
      It was install-tested in a clean Debian 12 container: the binary starts and
      every GStreamer plugin it needs is pulled in by a declared dependency.
    • audiosbc-0.1.0-x86_64-linux-gnu is that same binary on its own, for
      distributions where the .deb is no use.
    • No preferences dialog yet — advanced settings are edited in config.toml and
      take effect on restart.
    • The tray uses StatusNotifierItem, which Plasma supports natively. On GNOME it
      needs an AppIndicator extension; where no host is running the icon simply
      never appears, which is not a reason to refuse to start.
    • Worth knowing if you are reading the history: naming the virtual sink as
      pipewiresrc's target-object is not enough to capture it. WirePlumber
      treats a plain capture stream as a recording and links it to the default
      input — so early builds streamed the microphone rather than the music.
      stream.capture.sink is the property that asks for a sink's monitor.
    Downloads