Repository navigation
Releases
sendspin-cli 1.0.1
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-endpointnow 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 of172.30.32.1was masqueraded to
the host's LAN address and refused with 403. Music Assistant then logged
Fetching the local token of <id> failed: HTTP 403and never paired by itself. Other
machines on the LAN are still refused. (#134)
Packaging
- The
.deb,.rpmand 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 Archbackup. 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
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 likestatusdoes, 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,,/.,pto show the pairing token, andq. It
needs a terminal, and exits 1 without one. See
Using the TUI. (#120)- New subcommands, added for the TUI.
player-vol <0-100>andplayer-mute on|offset
this player's own level, which the server is told about and the player remembers.voland
mutestill address the group, and under--fixed-volumethe new two are refused with
exit 2.status-kvprints status askey=valuelines for scripts, starting with
version=1, with documented keys that are never renamed.statusgainslast pairing:,
and showsalbum:,group:andcodec: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.ps1installs per user with no administrator
rights, asks for a name and an output (or takes-Nameand-Output), and starts the
player at logon.uninstall_windows.ps1removes it, with-Purgeto drop config and state.
See Getting Started on Windows.
(#95, #102, #103, #104, #117) .deb,.rpmand Arch packages. Each release now has
sendspin-cli-<version>-<leg>.{deb,rpm,pkg.tar.zst}for linux-x86_64, arm64 and armv7, and
a.deband an Arch package for armv6, with no rpm. They hold the same binary as the
tarballs but install to/usr. They create thesendspin-cliaccount and install the unit
without enabling or starting it. Don't mix a package with a/usr/localtarball 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.shasks for a name and
an output device (or takes--nameand--output), writes them, and starts the service.
It works piped fromcurl. It installs missing runtime libraries through
apt-get/dnf/pacmanas part of the plan it shows.--user-serviceruns the player
undersystemctl --userinstead of the system unit.uninstall_linux.shremoves 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/
-NoAllowUnpairedon Windows) answer it up front, and--yeswritestrue. 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|cubicpicks the curve:cubictracks 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-devicecloses an ALSA or PortAudio output when a stream ends and reopens it
at the next one. Squeezelite, AirPlay or Spotify can then share an exclusivehw: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 default0stops the output at once, as before,
and--release-deviceoverrides 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.-lprints 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)statusprintspaired 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:8930on 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@v1role. 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 logsOutput 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 -- playingand 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/statedoesn'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-dirstill needs its parent to exist. (#118) -o portaudioand--input portaudioon 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 readsCLOCK_MONOTONIC_RAWon
Linux. (#94) statuskeeps showing a pairing attempt that starts with the connection. It used to
readpairing: noneduring 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--yesinstalls on a host with no
config are included. Existing configs are not changed. (#123) statusno longer printstrust: unknown. A connected session is alwayspairedor
unpaired. (#115)--name,--product-nameand--manufacturerover 64 bytes of UTF-8 are cut at a
character boundary, with a warning. Astream/startin 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; aserver/activatethat drops theplaybackactivity ends the running stream; and
--buffer-msand--output-delayalready 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...
sendspin-cli 0.4.0
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.--idandid =
are refused with a pointer atstatus, which gainsclient id:andtrust:lines near the
top and printsoutput delay:where it printedstatic delay:. In the state file,
static-delay-msandlast-server-hashbecomeblob-*keys, automatically and one way: an
older binary reading the new file loses the delay.SENDSPIN_CLIENT_IDin hooks is now
always set, to the key-derived id. (#72, #81, #83)
New features
- Pairing from the terminal.
sendspin-cli pair-tokenprints 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 instatus;--pairing-code <8 digits>/pairing-code =
replaces it with a fixed one, best kept in the config file.sendspin-cli pair confirmand
pair cancelanswer an attempt that is waiting, andstatuscarries apairing:line, with
pairing code:andpairing 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, withtoneandnullfor a device-less test.-llists
capture devices alongside outputs, andstatusshows aninput: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-volumefor 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.statusprintsplayer volume: 100 (fixed; the server cannot set it). (#88)--output-delayis the name for what--static-delayset, andoutput-delay =in a
config file likewise. The old flag and key are still accepted. (#72)
Fixed issues
-o nulland-o stdoutno 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) --helpno longer lists--id, which rc1 refuses;--state-dirgains 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 deprecatedpairing_window_supported
assignment is gone, since the library ignores it and the CLI already answers the pairing
window withpair confirm|cancel. Upstream changes that reach the player with the pin: the
player's quota is released atstream/clearandstream/end,client/hellogoes out only
afterserver/helloarrives, the network provider is polled only from the main loop, Opus
is decoded at 16 bits whateverstream/startsays, 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--inputresolve 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
Breaking changes
- macOS plays through a native CoreAudio backend, not PortAudio. The macOS binary is now
built without PortAudio and reportsnull, stdout, coreaudio, so a device named as
-o portaudio:<device>on a Mac is-o coreaudio:<device>instead; run-lfor 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
-sdials a typed-in address again, alongsidemdns: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.-sonce more
takes a bare host (server default port 8927),host:port, a fullws:///wss://URL, or a
bracketed IPv6 literal, typed or asserver =in a config file, and a bad address fails at
parse time rather than after the daemon starts.-s mdns:[<name>]still discovers, unchanged,
andmdns:is reserved only before the first colon — sohifi:8927is a host and a bare
-s mdnsis a host namedmdns. Any-sstill 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 sharedSinkRecovery, 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
Breaking changes
-sno longer dials a typed-in address. A host,host:port, orws://URL passed
to-s— or set asserver =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._tcpadvertisement, or this client discovers a server on
_sendspin-server._tcpand 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-formattakes 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 anopusentry 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 itgetifaddrs()fails and the player greets with an
emptyclient_id, which a server such as Music Assistant refuses. (#53)
Under the hood
- Re-pinned
sendspin-cppto v0.8.0 and adopted itsstart()/stop()lifecycle. (#62) - A
clang-formatCI gate andscripts/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
New features
linux-armv7archive — 32-bit builds for a Pi 2, Pi 3, Pi 4 or Pi Zero 2 running a 32-bit Raspberry Pi OS. (#47)linux-armv6archive — 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.shreads 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)
AlsaAudioSinkwas the only sink with real hardware behind it not wired intoSinkRecovery. Any error outside-EINTR/-EAGAIN,-EPIPEand-ESTRPIPE—-ENODEVincluded — counted as a failed write, so unplugging a USB DAC left the handle open on hardware that was gone and repeated an unthrottledERRORonce 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_URLno longer exports a stale dialled URL to the stream hooks on an-srun. (#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
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_D10sOver -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_URLno 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
--interfaceas 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 pulsecan report continuous lost/regained sync with
audible artifacts (#32).-o pipewireon 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
sendspin-cli 0.1.4
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-reloadsystemd-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 --versionThere 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-cliA .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 # macOSRun 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.
- README — build, install, run,
macOS, and Gatekeeper,
and the installer.pkg - Roadmap — what shipped and
what is owed, item by item
sendspin-cli 0.1.3
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-reloadsystemd-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 --versionThere 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-cliA .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 # macOSRun 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.
- README — build, install, run,
macOS, and Gatekeeper,
and the installer.pkg - Roadmap — what shipped and
what is owed, item by item
sendspin-cli 0.1.0
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-reloadsystemd-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 --versionThere 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-cliA .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 # macOSRun 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.
- README — build, install, run,
macOS, and Gatekeeper,
and the installer.pkg - Roadmap — what shipped and
what is owed, item by item