• 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