Skip to content

Releases

sendspin-cli 1.0.1

Choose a tag to compare

@chrisuthe chrisuthe released this 20 Nov 18:05
v1.0.1
ee76f35

A fix for local pairing on Home Assistant OS, and a config file in the Linux packages. The
player still speaks Sendspin 1.0.0-rc1, and nothing breaks for CLI users: every flag, config
key, control-socket message, state-file format and exit code from 1.0.0 works the same way.

Fixed issues

  • Local pairing works on Home Assistant OS. --pairing-token-endpoint now answers a peer
    whose address is one of this host's own, as well as peers on the endpoint address's subnet.
    Music Assistant runs on the host network, so its fetch of 172.30.32.1 was masqueraded to
    the host's LAN address and refused with 403. Music Assistant then logged
    Fetching the local token of <id> failed: HTTP 403 and never paired by itself. Other
    machines on the LAN are still refused. (#134)

Packaging

  • The .deb, .rpm and Arch packages install /etc/sendspin-cli.conf. It is the fully
    commented example, so nothing changes until you edit it. Upgrades keep your edits: it is a
    deb conffile, an rpm %config(noreplace) and an Arch backup. The package still doesn't
    enable or start the service. Installation → Packages walks through configuring it. (#130)

Full changelog: v1.0.0...v1.0.1

What this build is

sendspin-cli 1.0.1. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

Installing, verifying SHA256SUMS and the macOS Gatekeeper situation are in the
wiki — Installation,
or Getting Started on a Raspberry Pi
for the two 32-bit ARM archives. Each archive also carries its own BUILD-INFO.txt,
with the install command already filled in for its platform. The .deb, .rpm and
.pkg.tar.zst packages install the same binary under /usr; see
Packages.

The macOS binary and the .pkg around it are unsigned — ad-hoc signed, which is
the minimum an arm64 Mach-O needs to execute at all, and carries no developer identity
— so Gatekeeper refuses them until you say otherwise. Said here rather than only behind
a link because it is worth knowing before you download; what to do about it is under
the macOS installation guide.

The Windows zip is unsigned as well, so SmartScreen may warn the first time it runs.
Getting Started on Windows
has a guided installer that checks the zip against SHA256SUMS before installing it.

  • README — what it is, how to run
    it, and how to contribute
  • Contributors — development,
    testing, CI, and release guidance
  • Roadmap — what is still owed,
    item by item

sendspin-cli 1.0.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 22:28
v1.0.0
090e1bb

The first stable release. The player speaks Sendspin 1.0.0-rc1, as 0.4.0 did. It now runs on
Windows, installs as a .deb, .rpm or Arch package, and comes with a terminal remote.

Nothing breaks for CLI users. Every flag, config key, control-socket message, state-file
format and exit code from 0.4.0 still works the same way. The few visible changes are listed
under "Worth knowing".

New features

  • sendspin-cli tui, a terminal remote for the running player. It attaches over the
    control socket like status does, and it never plays audio or gets an identity of its own.
    When a server starts pairing, the screen shows the 6-digit code in large digits. A pairing
    window asks Y/N, and the outcome stays on screen for 3 s. The rest of the time it shows what
    is playing and drives it with the Python TUI's keys: space, ←/→, ↑/↓ for this player, [/]
    for the group, m/M, r, x, g, ,/., p to show the pairing token, and q. It
    needs a terminal, and exits 1 without one. See
    Using the TUI. (#120)
  • New subcommands, added for the TUI. player-vol <0-100> and player-mute on|off set
    this player's own level, which the server is told about and the player remembers. vol and
    mute still address the group, and under --fixed-volume the new two are refused with
    exit 2. status-kv prints status as key=value lines for scripts, starting with
    version=1, with documented keys that are never renamed. status gains last pairing:,
    and shows album:, group: and codec: once they are known. Every control exchange,
    including connect, is now bounded to 3 s, so a wedged player cannot hang a subcommand.
    (#120)
  • Windows. The player runs on Windows 10 1809 or later at parity with Linux and macOS:
    control socket, state, hooks, mDNS and -z. The control socket and the state file stay private to
    the user who runs it. Releases carry a Windows zip, linked against the static CRT so it runs
    on a clean install. get_started_windows.ps1 installs per user with no administrator
    rights, asks for a name and an output (or takes -Name and -Output), and starts the
    player at logon. uninstall_windows.ps1 removes it, with -Purge to drop config and state.
    See Getting Started on Windows.
    (#95, #102, #103, #104, #117)
  • .deb, .rpm and Arch packages. Each release now has
    sendspin-cli-<version>-<leg>.{deb,rpm,pkg.tar.zst} for linux-x86_64, arm64 and armv7, and
    a .deb and an Arch package for armv6, with no rpm. They hold the same binary as the
    tarballs but install to /usr. They create the sendspin-cli account and install the unit
    without enabling or starting it. Don't mix a package with a /usr/local tarball install on
    one machine. See Packages for which
    package fits which release, and how to verify and install it. (#124)
  • A guided Linux install, and an uninstaller. get_started_linux.sh asks for a name and
    an output device (or takes --name and --output), writes them, and starts the service.
    It works piped from curl. It installs missing runtime libraries through
    apt-get/dnf/pacman as part of the plan it shows. --user-service runs the player
    under systemctl --user instead of the system unit. uninstall_linux.sh removes either
    mode, and keeps config and state unless you pass --purge. (#79)
  • The installers offer unpaired access, on by default. On a fresh install, both
    get-started scripts ask
    Let any server on your network play here without pairing first? [Y/n] and write
    allow-unpaired. --allow-unpaired / --no-allow-unpaired (-AllowUnpaired /
    -NoAllowUnpaired on Windows) answer it up front, and --yes writes true. A config that
    already sets the key is left alone. The binary's own default is still
    allow-unpaired = false. (#123)
  • --alsa-mixer <card:control> drives a hardware mixer for volume and mute instead of
    scaling the stream in software, mapped over the control's dB range. The player reports the
    mixer's level at startup, and reports changes made in alsamixer or with a hardware knob.
    --alsa-mixer-curve spec|cubic picks the curve: cubic tracks alsamixer's slider. A mixer
    that cannot be opened falls back to software gain. The flag needs an ALSA output and is
    refused with --fixed-volume. Thanks to @TermeHansen. (#96)
  • --release-device closes an ALSA or PortAudio output when a stream ends and reopens it
    at the next one. Squeezelite, AirPlay or Spotify can then share an exclusive hw: DAC with
    the player between streams. It is off by default: another app may hold the device when a
    stream starts. (#100)
  • --keep-output-alive <s> keeps an ALSA output running on silence for up to <s>
    seconds after the last audio. This helps an HDMI or S/PDIF receiver that swallows the start
    of the next stream while it re-locks. The default 0 stops the output at once, as before,
    and --release-device overrides it. Thanks to @tho22. (#109, #127)
  • portaudio:<host api>:<name> picks one of the copies of a device that Windows lists
    once per host API, e.g. -o portaudio:directsound:Speakers. -l prints the prefix to type
    (mme, directsound, wasapi, alsa, coreaudio, …). A name that already resolves still
    resolves the same way. An ambiguous bare name is refused with each copy listed. (#103)
  • status prints paired servers: N, the number of stored pairings, whether or not a
    server is connected. (#105)
  • --pairing-token-endpoint <address>:<port> serves the pairing token over HTTP on one
    internal address, e.g. 172.30.32.1:8930 on Home Assistant OS, so a server on the same host
    can pair without a code. It answers only peers on that address's own subnet, and only until
    a server pairs. It refuses a wildcard address. This needs a server that does local pairing
    through the _ohf_local_pairing@v1 role. That role name is still provisional, and Music
    Assistant support is in progress (music-assistant/server#7371). Off by default. (#110)

Fixed issues

  • A busy ALSA device no longer loses the whole stream. An open that fails because another
    process holds the device now logs Output device '…' is busy (held by another process)
    instead of blaming the format. The player retries in the background after 2, 4, 8, 16 and
    30 s, then starts again from 2 s. When the device frees up it logs
    Output device '…' is free -- playing and playback resumes within the stream. When the stream ends it stops retrying, so an idle player never grabs a device that
    another player has just released. (#127)
  • PulseAudio and PipeWire can suspend the sink between streams. The player's stream is
    corked (Pulse) or paused (PipeWire) at stream end, instead of left running. (#127)
  • The default state directory is created when ~/.local/state doesn't exist yet. On a
    fresh system every write of the state file used to fail, so the player forgot its identity,
    pairings and volume across restarts. Missing parents of the default path are now created at
    0700. An explicit --state-dir still needs its parent to exist. (#118)
  • -o portaudio and --input portaudio on big-endian hosts. PortAudio's sample formats
    are native-endian, so on such a host every 16-, 24- and 32-bit sample was byte-reversed and
    played as noise. Samples are now swapped on the way in and out. (#119)
  • A format change mid-stream no longer desyncs. The sink is reopened in the format each
    write carries, once the old format's audio has played out. (#122)
  • Linux playback no longer hard-corrects while the time daemon slews the clock. Every
    sink and source now timestamps on the library's clock, which reads CLOCK_MONOTONIC_RAW on
    Linux. (#94)
  • status keeps showing a pairing attempt that starts with the connection. It used to
    read pairing: none during the exchange. An attempt that the server cancels is now
    forgotten too. (#115)

Worth knowing

  • New installs through the get-started scripts let unpaired servers play, unless you
    answer no or pass --no-allow-unpaired. Unattended --yes installs on a host with no
    config are included. Existing configs are not changed. (#123)
  • status no longer prints trust: unknown. A connected session is always paired or
    unpaired. (#115)
  • --name, --product-name and --manufacturer over 64 bytes of UTF-8 are cut at a
    character boundary, with a warning. A stream/start in a format the player didn't
    advertise ends that stream. (#122)
  • Log wording. A busy ALSA device ends a stream with
    Stream ended: N bytes discarded, because '…' was busy. A refused format ends one with
    Stream ended: N bytes discarded, because '<sink>' refused their format.
    Stream updated: <rate> / <ch> / <bits> is new. A log watcher that matches "refused" no
    longer sees busy devices. (#122, #127)

Under the hood

  • sendspin-cpp is pinned to v0.10.0, and the CLI uses none of its deprecated APIs.
    Upstream changes that reach the player with the pin: time-sync bursts run at most 10 s
    apart; a server/activate that drops the playback activity ends the running stream; and
    --buffer-ms and --output-delay already sit inside the library's new limits.
    (#94, #101, #115, #122)
  • Building offline with vendored sources, through FETCHCONTENT_SOURCE_DIR_<NAME> and
    FETCHCONTENT_FULLYDISCONNECTED=ON, is documented for distro packagers. (#127)
  • The README follows the Python CLI's layout, and the pairing docs lead with the code
    rather than the token. Thanks to @maximmaxim345. (#107, #112)
  • CI runs the Linux installer on clean Debian trixie and bookworm, installs and removes
    the packages on Debian, Ubuntu, Fedora and Ar...
Read more

sendspin-cli 0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 23:51
45ff8b0

Breaking changes

  • The player speaks Sendspin 1.0.0-rc1, and every connection is encrypted. A server must
    speak rc1 too (aiosendspin 10 or later); an older one cannot connect at all. Every player gets
    a new identity, the public key of a keypair generated on first run, so a server sees a new
    player and its stored volume and grouping do not carry over. A server must pair with the
    player before it can play, unless the player runs with --allow-unpaired. --id and id =
    are refused with a pointer at status, which gains client id: and trust: lines near the
    top and prints output delay: where it printed static delay:. In the state file,
    static-delay-ms and last-server-hash become blob-* keys, automatically and one way: an
    older binary reading the new file loses the delay. SENDSPIN_CLIENT_ID in hooks is now
    always set, to the key-derived id. (#72, #81, #83)

New features

  • Pairing from the terminal. sendspin-cli pair-token prints the token to paste into a
    server, and the player logs it once at startup until a server is paired, to the terminal or
    journal but never to a --logfile. When a server asks to pair with a code, the player logs
    the 6-digit code and shows it in status; --pairing-code <8 digits> / pairing-code =
    replaces it with a fixed one, best kept in the config file. sendspin-cli pair confirm and
    pair cancel answer an attempt that is waiting, and status carries a pairing: line, with
    pairing code: and pairing window: while they apply. (#73)
  • --input <backend>:<device> streams a microphone or line-in to the server through the
    source role, on ALSA, CoreAudio (macOS asks for microphone permission on first use),
    PipeWire, PulseAudio and PortAudio, with tone and null for a device-less test. -l lists
    capture devices alongside outputs, and status shows an input: line while one is
    configured. (#74, #75, #76, #84)
  • --input loopback[:<sink|device>] streams what this host is playing. On PipeWire and
    PulseAudio it captures a sink's monitor, the player's own output included; on macOS 14.2 and
    later it captures through a process tap that leaves the player's own playback out, and
    refuses a tap that cannot. (#85, #86)
  • --fixed-volume for an output whose level is set elsewhere, such as a line-out into an
    amplifier. The player plays at full gain, unmuted, and offers the server neither volume nor
    mute, so a server's volume slider for it disappears rather than silently doing nothing. A
    volume remembered in the state file is kept but ignored, with one log line saying so, and
    returns once the flag is dropped. status prints player volume: 100 (fixed; the server cannot set it). (#88)
  • --output-delay is the name for what --static-delay set, and output-delay = in a
    config file likewise. The old flag and key are still accepted. (#72)

Fixed issues

  • -o null and -o stdout no longer drop the connection a second into every stream.
    Neither sink reported playback, so the player never left its startup priming: the first
    chunk stayed held, every chunk after it queued behind it, the inbound ring filled and the
    library closed the connection, which the server reopened in a loop. Both sinks now report
    what they consume against a virtual clock, so each chunk is released as it arrives. (#89)
  • Volume scaling at 16 and 32 bits on big-endian hosts. Any gain other than unity played
    as noise on MIPS under OpenWrt, because those two paths read and wrote samples at native
    width; they now assemble little-endian bytes as the 24-bit path already did. (#77)
  • --help no longer lists --id, which rc1 refuses; --state-dir gains the advice that
    two players on one host need separate state directories, or they share one identity. (#83)

Under the hood

  • sendspin-cpp is pinned to v0.9.5, and the deprecated pairing_window_supported
    assignment is gone, since the library ignores it and the CLI already answers the pairing
    window with pair confirm|cancel. Upstream changes that reach the player with the pin: the
    player's quota is released at stream/clear and stream/end, client/hello goes out only
    after server/hello arrives, the network provider is polled only from the main loop, Opus
    is decoded at 16 bits whatever stream/start says, Opus PCM stays little-endian on
    big-endian hosts, and a hard sync is measured from now after the sink starves. (#81)
  • CI runs a big-endian MIPS job, cross-compiling the volume code and running it under
    QEMU, so the scaling fix above cannot regress unnoticed. (#77)
  • PortAudio and CoreAudio device lookup is shared between sink and source, so -l, -o
    and --input resolve a device the same way on each backend. (#75, #84)

Full changelog: v0.3.0...v0.4.0

What this build is

sendspin-cli 0.4.0. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

Installing, verifying SHA256SUMS and the macOS Gatekeeper situation are in the
wiki — Installation,
or Getting Started on a Raspberry Pi
for the two 32-bit ARM archives. Each archive also carries its own BUILD-INFO.txt,
with the install command already filled in for its platform.

The macOS binary and the .pkg around it are unsigned — ad-hoc signed, which is
the minimum an arm64 Mach-O needs to execute at all, and carries no developer identity
— so Gatekeeper refuses them until you say otherwise. Said here rather than only behind
a link because it is worth knowing before you download; what to do about it is under
the macOS installation guide.

  • README — what it is, how to run
    it, and how to contribute
  • Contributors — development,
    testing, CI, and release guidance
  • Roadmap — what shipped and
    what is owed, item by item

sendspin-cli 0.3.0

Choose a tag to compare

@github-actions github-actions released this 19 Sep 03:35
bc0551c

Breaking changes

  • macOS plays through a native CoreAudio backend, not PortAudio. The macOS binary is now
    built without PortAudio and reports null, stdout, coreaudio, so a device named as
    -o portaudio:<device> on a Mac is -o coreaudio:<device> instead; run -l for the names
    this host reports. The same change fixes a launch failure: the 0.2.0 macOS binary aborted at
    startup on any Mac without Homebrew's PortAudio, and this one needs nothing installed —
    CoreAudio, AudioToolbox and Bonjour are all part of macOS. PortAudio is untouched on Linux,
    and a macOS build can still ask for it with -DSENDSPIN_CLI_WITH_PORTAUDIO=ON. (#66)

New features

  • -s dials a typed-in address again, alongside mdns: discovery. 0.2.0 removed the
    address form; that removal is reversed by choice, because pointing a player straight at a
    known server is worth more than matching the spec's connection model exactly. -s once more
    takes a bare host (server default port 8927), host:port, a full ws:///wss:// URL, or a
    bracketed IPv6 literal, typed or as server = in a config file, and a bad address fails at
    parse time rather than after the daemon starts. -s mdns:[<name>] still discovers, unchanged,
    and mdns: is reserved only before the first colon — so hifi:8927 is a host and a bare
    -s mdns is a host named mdns. Any -s still suppresses the mDNS advertisement, and a
    parse error never quotes a credential the address carried. (#68)

Fixed issues

  • A second device outage in one stream recovers. A rescan that succeeded retired the
    recovery budget instead of restoring it, so after one unplug and replug the next outage got
    no attempts at all: the sink discarded audio until the following track, with no log line to
    say why. The budget is now per outage rather than per stream — a recovery refills the in-place
    reopen and the whole rescan ladder — while a device that never comes back still gives up on
    the same schedule as before. This sat in the shared SinkRecovery, so ALSA, PulseAudio,
    PipeWire and PortAudio all had it and all get the fix. (#67)

Under the hood

  • The CoreAudio sink was validated against real hardware, not only against its tests: tone
    accounting and DAC-offset checks at each supported format, a volume-ramp check, a
    default-output move, and unplug/replug cycles on a USB DAC. Two findings came back onto the
    branch before it merged — a doubled safety offset in the DAC timestamp, and a reopen that
    waited out the backoff ladder instead of acting on the device-list change — and one, the
    second-outage bug above, turned out to belong to every device-backed sink. (#66, #67)
  • The macOS release leg builds with no third-party runtime dependency at all, and CI asserts
    the backend list it produces.

Full changelog: v0.2.0...v0.3.0

What this build is

sendspin-cli 0.3.0. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

Installing, verifying SHA256SUMS and the macOS Gatekeeper situation are in the
wiki — Installation,
or Getting Started on a Raspberry Pi
for the two 32-bit ARM archives. Each archive also carries its own BUILD-INFO.txt,
with the install command already filled in for its platform.

The macOS binary and the .pkg around it are unsigned — ad-hoc signed, which is
the minimum an arm64 Mach-O needs to execute at all, and carries no developer identity
— so Gatekeeper refuses them until you say otherwise. Said here rather than only behind
a link because it is worth knowing before you download; what to do about it is under
the macOS installation guide.

  • README — what it is, how to run
    it, and how to contribute
  • Contributors — development,
    testing, CI, and release guidance
  • Roadmap — what shipped and
    what is owed, item by item

sendspin-cli 0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Sep 01:42
v0.2.0
e980128

Breaking changes

  • -s no longer dials a typed-in address. A host, host:port, or ws:// URL passed
    to -s — or set as server = in a config file — is now a parse error rather than a dial
    target. The spec has exactly two ways to connect: the server discovers this client through
    its _sendspin._tcp advertisement, or this client discovers a server on
    _sendspin-server._tcp and connects to the address it advertised. Dialling a hand-entered
    endpoint is neither, so it is gone. -s mdns:[<name>] — discovery — is the only form left,
    and it works exactly as before. An install still pointed at an address fails loudly at
    startup instead of quietly changing how it connects; point the server at this player, or
    switch to -s mdns:. (#56)

New features

  • --audio-format takes an ordered list of preferred formats. Pass a comma-separated
    list, e.g. --audio-format flac:48000:24:2,pcm:48000:24:2, and those formats are offered
    first in that order with the rest of the device-derived list still behind them — a
    preference a server falls back from, not a restriction. The player refuses to start if the
    advertised list cannot carry every entry, and an opus entry at anything but 48000/16 and
    at most two channels is refused outright. (#57)

Fixed issues

  • A recovered audio device no longer jumps the playback clock. While a sink had no live
    stream, write() still reported the audio as consumed but nothing ever reported it as
    played, so after recovery the playhead jumped ahead by the whole outage and sync cycled
    between Lost and Regained. Fixed for the ALSA sink (#54, #55), then extended to the Pulse,
    PortAudio and PipeWire sinks (#58, #59).
  • The systemd unit now allows AF_NETLINK, so the MAC-derived client id is detected
    under the shipped hardening. Without it getifaddrs() fails and the player greets with an
    empty client_id, which a server such as Music Assistant refuses. (#53)

Under the hood

  • Re-pinned sendspin-cpp to v0.8.0 and adopted its start()/stop() lifecycle. (#62)
  • A clang-format CI gate and scripts/format.sh, with comment guidelines in
    AGENTS.md. (#61, #60)
  • The README is restructured around what it is, how to run it, and how to contribute, and
    the ARMv6 build leg moved into its own workflow. (#52, #51)

Full changelog: v0.1.6...v0.2.0

What this build is

sendspin-cli 0.2.0. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

Installing, verifying SHA256SUMS and the macOS Gatekeeper situation are in the
wiki — Installation,
or Getting Started on a Raspberry Pi
for the two 32-bit ARM archives. Each archive also carries its own BUILD-INFO.txt,
with the install command already filled in for its platform.

The macOS binary and the .pkg around it are unsigned — ad-hoc signed, which is
the minimum an arm64 Mach-O needs to execute at all, and carries no developer identity
— so Gatekeeper refuses them until you say otherwise. Said here rather than only behind
a link because it is worth knowing before you download; what to do about it is under
the macOS installation guide.

  • README — what it is, how to run
    it, and how to contribute
  • Contributors — development,
    testing, CI, and release guidance
  • Roadmap — what shipped and
    what is owed, item by item

sendspin-cli 0.1.6

Choose a tag to compare

@github-actions github-actions released this 30 Aug 23:29
6b20f85

New features

  • linux-armv7 archive — 32-bit builds for a Pi 2, Pi 3, Pi 4 or Pi Zero 2 running a 32-bit Raspberry Pi OS. (#47)
  • linux-armv6 archive — for a Pi Zero, Pi Zero W or original Pi. These are ARM1176 and hit an illegal instruction in the ARMv7 build. Built natively in an emulated Raspbian container, so it is also the only archive here that loads on Raspberry Pi OS bookworm as well as trixie. (#44, #48)
  • Automatic archive selection — scripts/get_started_linux.sh reads the userland and downloads the right archive for the board it is on. It refuses rather than guesses on a pre-ARMv6 CPU or a userland it cannot identify. (#47, #48)

Fixed issues

  • A replugged ALSA device now recovers mid-track. (#45, #46) AlsaAudioSink was the only sink with real hardware behind it not wired into SinkRecovery. Any error outside -EINTR/-EAGAIN, -EPIPE and -ESTRPIPE — -ENODEV included — counted as a failed write, so unplugging a USB DAC left the handle open on hardware that was gone and repeated an unthrottled ERROR once per retry until you restarted the process. Device loss now closes the device and reopens at the last negotiated format, behind the delay and retry budget the other sinks already use. Nothing to configure: plug it back in and the stream resumes.
  • SENDSPIN_SERVER_URL no longer exports a stale dialled URL to the stream hooks on an -s run. (#34, fixed in 0.1.5, tracked closed here.)

Which Raspberry Pi archive do I want?

Board Archive
Pi 5, Pi 4, Pi 3, Pi Zero 2 on a 64-bit OS linux-arm64
Pi 2, Pi 3, Pi 4, Pi Zero 2 on a 32-bit OS linux-armv7
Pi Zero, Pi Zero W, original Pi linux-armv6

Or run scripts/get_started_linux.sh and let it choose.

Install

Installation, SHA256SUMS verification and the macOS Gatekeeper situation are in the wiki — Installation, or Getting Started on a Raspberry Pi for the archives above. Each archive also carries its own BUILD-INFO.txt.

Full changelog: v0.1.5...v0.1.6

sendspin-cli 0.1.5

Choose a tag to compare

@github-actions github-actions released this 28 Aug 20:46
f035731

sendspin-cli 0.1.5, linked against sendspin-cpp v0.7.2 — --version prints both.
Binaries for Linux (x86-64 and arm64) and macOS (Apple silicon), plus a macOS
installer .pkg. Install steps are on the wiki:
Installation for every
way in, Getting Started on Linux
for the one-command version — or read each archive's own BUILD-INFO.txt. SHA256SUMS
covers the four files above, and the macOS builds are unsigned — read the
macOS install notes
before downloading one.

Native PulseAudio and PipeWire outputs (#27)

-o pulse plays through the PulseAudio server's default sink; -o pipewire lets
the PipeWire graph route the stream. Both take a device after a colon, named
exactly as -l prints it — and the server resolves that name at every stream, so
a sink that appears after startup is picked up by the next track without a restart:

sendspin-cli -o pulse                    # the server's default sink
sendspin-cli -o pulse:alsa_output.pci-0000_00_1f.3.analog-stereo
sendspin-cli -o pipewire                 # let the graph route it
sendspin-cli -o pipewire:alsa_output.usb-Topping_D10s

Over -o alsa:pulse (ALSA's plugin PCM) this buys enumerable sinks and nodes, a
stream the host mixer shows as sendspin-cli and can route per-application, and
sync feedback that answers for the server's real playout rather than the plugin's
own buffering — and this is a synchronised multi-room player, so that is not
cosmetic.

A working command line changes meaning on this upgrade: -o pulse and
-o pipewire used to fall through to ALSA's plugin PCMs of the same names; the
native backends now claim them. -o alsa:pulse and -o alsa:pipewire are the way
back, on every build with the ALSA backend.

--buffer-ms <ms> (10–2000, default 100) sizes these queues like every other
backend's: the PulseAudio server queue (tlength), the PipeWire ring. The short
tour of -o is under the wiki's
Choosing an output;
the full one is in the
README.

Stream hooks: --hook-start and --hook-stop (#28)

Each runs a shell command when a stream starts and when it stops — the amplifier
relay, the light, the notification. The command goes through /bin/sh -c, so pipes
and && work, and the event's facts arrive in the environment:

sendspin-cli -o hw:1,0 \
  --hook-start 'amixer -c 1 set Master unmute' \
  --hook-stop  'amixer -c 1 set Master mute'
Variable Carries
SENDSPIN_EVENT start or stop
SENDSPIN_SERVER_ID the connected server's id
SENDSPIN_SERVER_NAME its friendly name
SENDSPIN_SERVER_URL the URL this run dialled — set only on an -s run
SENDSPIN_CLIENT_ID this player's id, when --id chose one
SENDSPIN_CLIENT_NAME this player's friendly name (-n)

A stop event carries the same server facts as the start it pairs with, and an
unknown is left unset rather than exported empty, so [ -n "$SENDSPIN_SERVER_ID" ]
means what it says. The vocabulary is the Python sendspin-cli's, so a hook script
written against one player runs unchanged against the other.

Hooks never block playback; they run one at a time, in event order, with the newest
event superseding one still waiting (#41), and the command text never reaches the
log at any level — a hook command routinely carries a credential (#40). A player
stopped mid-stream runs its stop hook on the way out, so systemctl stop leaves
the amplifier off. The full contract is on the wiki's
Controlling the Player page.

Identity flags: --id, --manufacturer, --product-name (#29)

--id is the stable id a server files this player's volume, group and pairing
under. Without it the id is derived from the network interface MAC — so two
players on one host share it, and each server-side setting lands on whichever
connected last. A dual-mono pair needs its own --id per instance, with its own
--port and --state-dir. --manufacturer and --product-name set what the
server displays for the device.

Pin a format: --audio-format (#31)

--audio-format <codec:rate:depth:channels> — e.g. flac:48000:24:2 — moves a
preferred format to the front of what the device probe derived, which is where a
spec-following server picks. It is a reorder, not a narrowing: everything else the
device takes is still offered behind it, and a pin the device cannot take refuses
to start rather than playing something else (#38). Codecs are flac, opus and
pcm; opus only at 48 kHz / 16-bit.

Also in this release

  • SENDSPIN_SERVER_URL no longer exports a stale dialled URL when a server dials
    in after an outbound attempt dropped or failed: a lost connection clears it,
    and a discovery dial exports it only for the server it dialled (#42).
  • The roadmap records --interface as item 25, gated on a sendspin-cpp bind
    address (#39).

Known issues

  • A mid-session format change (a queue moving, say, from a 48 kHz track to a
    192 kHz one) can leave the stream desynced until a manual pause/play (#30).
  • Under pipewire-pulse, -o pulse can report continuous lost/regained sync with
    audible artifacts (#32). -o pipewire on the same host is clean — on PipeWire
    hosts, prefer the native -o pipewire.

Both are on the wiki's
Troubleshooting page,
beside the rest of the it-starts-and-makes-no-sound ladder.

More

  • Wiki — install, configure, control,
    run as a service, troubleshoot
  • README — the deep
    reference behind those pages, and the copy every archive carries offline
  • Roadmap —
    what shipped and what is owed, item by item

sendspin-cli 0.1.4

Choose a tag to compare

@github-actions github-actions released this 26 Aug 21:11
aeb768b

Binaries for Linux (x86-64 and arm64) and macOS (Apple silicon), plus a macOS
installer .pkg, built and published by .github/workflows/release.yml from the tag
alone.

Install

Each archive is a staged cmake --install payload, so every path under its usr/ is
the path the file installs to:

sudo tar -xzf sendspin-cli-0.1.4-linux-x86_64.tar.gz --strip-components=1 -C / \
  sendspin-cli-0.1.4-linux-x86_64/usr
sudo systemd-sysusers
sudo systemctl daemon-reload

systemd-sysusers creates the unprivileged account the unit runs as, from the
declaration the payload installs alongside it; a tarball has no postinst to run it
for you, and without it systemctl start reports 217/USER.

Naming the usr member is what leaves BUILD-INFO.txt in the archive rather than
unpacking it at /. Each archive carries its own BUILD-INFO.txt at the root with
that command already filled in for its platform, the runtime packages it needs, and
what the systemd unit does. Or run it where you unpacked it, at
./<name>/usr/local/bin/sendspin-cli.

On macOS the .pkg is the shorter path to the same place. It is built from the very
payload the macOS archive holds, so the two put identical files on disk:

sudo installer -pkg sendspin-cli-0.1.4-macos-arm64.pkg -target /
sendspin-cli --version

There is no uninstaller: remove those files and run
sudo pkgutil --forget io.github.chrisuthe.sendspin-cli.

macOS is unsigned, archive and .pkg alike

The macOS binary is ad-hoc signed — the minimum an arm64 Mach-O needs to execute
at all, applied by the linker. It carries no developer identity, spctl rejects it,
and the .pkg around it is unsigned in the same way. Unpack the archive from a
terminal rather than in Finder, whose Archive Utility sets the quarantine flag where
tar does not; if macOS refuses the binary anyway:

xattr -d com.apple.quarantine \
  ./sendspin-cli-0.1.4-macos-arm64/usr/local/bin/sendspin-cli

A .pkg downloaded from this page is quarantined too, and Gatekeeper refuses it on a
double-click — allow it once under System Settings → Privacy & Security, or use the
installer command above, which makes no Gatekeeper assessment at all whatever the
file is flagged with.

All of that is a workaround, not a fix, and the .pkg is not the fix either. What it
changes is narrower: xcrun stapler staples a notarization ticket to a .pkg and
refuses a bare executable, so this is the shape that makes notarization possible at
all. A Developer ID signature and notarization need a paid Apple enrolment and are
still owed. Said plainly here because it is worth knowing before you download: these
are unsigned builds from a public CI runner. The full account is under macOS, and
Gatekeeper
in the README linked below.

Checksums

SHA256SUMS covers the four files above. It does not cover the Source code
archives GitHub attaches on its own, which are generated by GitHub rather than built
here.

sha256sum --ignore-missing -c SHA256SUMS      # Linux
shasum -a 256 --ignore-missing -c SHA256SUMS  # macOS

Run that from the directory you downloaded into. --ignore-missing is there because
SHA256SUMS lists all four and you have almost certainly taken one: without it, the
ones you did not download are reported as failures and the command exits non-zero on a
perfectly good file.

What this build is

sendspin-cli 0.1.4. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

sendspin-cli 0.1.3

Choose a tag to compare

@github-actions github-actions released this 24 Aug 16:59
v0.1.3
71818c9

Binaries for Linux (x86-64 and arm64) and macOS (Apple silicon), plus a macOS
installer .pkg, built and published by .github/workflows/release.yml from the tag
alone.

Install

Each archive is a staged cmake --install payload, so every path under its usr/ is
the path the file installs to:

sudo tar -xzf sendspin-cli-0.1.3-linux-x86_64.tar.gz --strip-components=1 -C / \
  sendspin-cli-0.1.3-linux-x86_64/usr
sudo systemd-sysusers
sudo systemctl daemon-reload

systemd-sysusers creates the unprivileged account the unit runs as, from the
declaration the payload installs alongside it; a tarball has no postinst to run it
for you, and without it systemctl start reports 217/USER.

Naming the usr member is what leaves BUILD-INFO.txt in the archive rather than
unpacking it at /. Each archive carries its own BUILD-INFO.txt at the root with
that command already filled in for its platform, the runtime packages it needs, and
what the systemd unit does. Or run it where you unpacked it, at
./<name>/usr/local/bin/sendspin-cli.

On macOS the .pkg is the shorter path to the same place. It is built from the very
payload the macOS archive holds, so the two put identical files on disk:

sudo installer -pkg sendspin-cli-0.1.3-macos-arm64.pkg -target /
sendspin-cli --version

There is no uninstaller: remove those files and run
sudo pkgutil --forget io.github.chrisuthe.sendspin-cli.

macOS is unsigned, archive and .pkg alike

The macOS binary is ad-hoc signed — the minimum an arm64 Mach-O needs to execute
at all, applied by the linker. It carries no developer identity, spctl rejects it,
and the .pkg around it is unsigned in the same way. Unpack the archive from a
terminal rather than in Finder, whose Archive Utility sets the quarantine flag where
tar does not; if macOS refuses the binary anyway:

xattr -d com.apple.quarantine \
  ./sendspin-cli-0.1.3-macos-arm64/usr/local/bin/sendspin-cli

A .pkg downloaded from this page is quarantined too, and Gatekeeper refuses it on a
double-click — allow it once under System Settings → Privacy & Security, or use the
installer command above, which makes no Gatekeeper assessment at all whatever the
file is flagged with.

All of that is a workaround, not a fix, and the .pkg is not the fix either. What it
changes is narrower: xcrun stapler staples a notarization ticket to a .pkg and
refuses a bare executable, so this is the shape that makes notarization possible at
all. A Developer ID signature and notarization need a paid Apple enrolment and are
still owed. Said plainly here because it is worth knowing before you download: these
are unsigned builds from a public CI runner. The full account is under macOS, and
Gatekeeper
in the README linked below.

Checksums

SHA256SUMS covers the four files above. It does not cover the Source code
archives GitHub attaches on its own, which are generated by GitHub rather than built
here.

sha256sum --ignore-missing -c SHA256SUMS      # Linux
shasum -a 256 --ignore-missing -c SHA256SUMS  # macOS

Run that from the directory you downloaded into. --ignore-missing is there because
SHA256SUMS lists all four and you have almost certainly taken one: without it, the
ones you did not download are reported as failures and the command exits non-zero on a
perfectly good file.

What this build is

sendspin-cli 0.1.3. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.

sendspin-cli 0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 12:08
1d56301

Binaries for Linux (x86-64 and arm64) and macOS (Apple silicon), plus a macOS
installer .pkg, built and published by .github/workflows/release.yml from the tag
alone.

Install

Each archive is a staged cmake --install payload, so every path under its usr/ is
the path the file installs to:

sudo tar -xzf sendspin-cli-0.1.0-linux-x86_64.tar.gz --strip-components=1 -C / \
  sendspin-cli-0.1.0-linux-x86_64/usr
sudo systemd-sysusers
sudo systemctl daemon-reload

systemd-sysusers creates the unprivileged account the unit runs as, from the
declaration the payload installs alongside it; a tarball has no postinst to run it
for you, and without it systemctl start reports 217/USER.

Naming the usr member is what leaves BUILD-INFO.txt in the archive rather than
unpacking it at /. Each archive carries its own BUILD-INFO.txt at the root with
that command already filled in for its platform, the runtime packages it needs, and
what the systemd unit does. Or run it where you unpacked it, at
./<name>/usr/local/bin/sendspin-cli.

On macOS the .pkg is the shorter path to the same place. It is built from the very
payload the macOS archive holds, so the two put identical files on disk:

sudo installer -pkg sendspin-cli-0.1.0-macos-arm64.pkg -target /
sendspin-cli --version

There is no uninstaller: remove those files and run
sudo pkgutil --forget io.github.chrisuthe.sendspin-cli.

macOS is unsigned, archive and .pkg alike

The macOS binary is ad-hoc signed — the minimum an arm64 Mach-O needs to execute
at all, applied by the linker. It carries no developer identity, spctl rejects it,
and the .pkg around it is unsigned in the same way. Unpack the archive from a
terminal rather than in Finder, whose Archive Utility sets the quarantine flag where
tar does not; if macOS refuses the binary anyway:

xattr -d com.apple.quarantine \
  ./sendspin-cli-0.1.0-macos-arm64/usr/local/bin/sendspin-cli

A .pkg downloaded from this page is quarantined too, and Gatekeeper refuses it on a
double-click — allow it once under System Settings → Privacy & Security, or use the
installer command above, which makes no Gatekeeper assessment at all whatever the
file is flagged with.

All of that is a workaround, not a fix, and the .pkg is not the fix either. What it
changes is narrower: xcrun stapler staples a notarization ticket to a .pkg and
refuses a bare executable, so this is the shape that makes notarization possible at
all. A Developer ID signature and notarization need a paid Apple enrolment and are
still owed. Said plainly here because it is worth knowing before you download: these
are unsigned builds from a public CI runner. The full account is under macOS, and
Gatekeeper
in the README linked below.

Checksums

SHA256SUMS covers the four files above. It does not cover the Source code
archives GitHub attaches on its own, which are generated by GitHub rather than built
here.

sha256sum --ignore-missing -c SHA256SUMS      # Linux
shasum -a 256 --ignore-missing -c SHA256SUMS  # macOS

Run that from the directory you downloaded into. --ignore-missing is there because
SHA256SUMS lists all four and you have almost certainly taken one: without it, the
ones you did not download are reported as failures and the command exits non-zero on a
perfectly good file.

What this build is

sendspin-cli 0.1.0. The version of the sendspin-cpp library it is linked against
is pinned at build time and printed on the second line of sendspin-cli --version,
alongside this one on the first.