Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 01 Nov 02:23
· 180 commits to main since this release
2012195

Tagged at 2012195e: 217 merged pull requests since v0.2.1. The wire protocol stays at PROTOCOL.md v1, and every change to it is additive, so apps paired with v0.2.1 keep working.

The bridge can now be the player: on a Linux box with a USB DAC, bridge serve plays your library itself, and the 1-bit app casts to it.

Highlights

  • The bridge's own player (B470): bridge serve plays this bridge's FLAC, WAV, AIFF and ALAC files to a USB DAC through ALSA, at their own rate and bit depth, as an OpenHome renderer the 1-bit app casts to. It is PCM only in 0.2.2: a DSD track is refused, never converted. It is off by default, Linux only and refused in public mode.
  • A Player page in the console (B601, B612) shows the player's status, its DAC and what it plays. It turns the player on or off, chooses the DAC, and lets the 1-bit app cast to it.
  • The box's own MPD (B473): on a Linux box running MPD (Volumio, moOde, Raspberry Pi OS), the bridge tells the app about the box's MPD and its DAC. bridge doctor and the console show a Player / DAC / Music / Phone checklist.
  • A one-line installer for Linux (B475): curl -fsSL https://1-bit.app/install.sh | sh. It covers Raspberry Pi OS, moOde, Volumio, Debian and Ubuntu, 64-bit, and checks the release's checksums. Run it again to upgrade.
  • Devices stay in step: the app hears at once when favorites, playlists or the library change, and a favorite removed on one device stays removed.
  • Playlist files: the library's .m3u and .m3u8 files are served to the app, read-only (B431).
  • DLNA serves the home network only (B48): never a tailnet address.
  • Scanning: explicit-content tags, repeated tags joined rather than cut, a sample-format fact for PCM tracks, and a date added that a retag never moves.
  • Renditions are published only whole: a write that failed on a full disk is no longer served (B264).
  • Hardening: a pairing code dies with its token (B160); a console save never overwrites another writer's change (B506); the SSDP listener holds any control data the kernel hands it (B610); fewer paths and addresses reach the logs (B604, with what remains listed on the privacy page).
  • Go 1.27.3, plus dependency updates.

Upgrade notes

  • The first start re-reads every track's tags once (ExtractorVersion 22 → 30). On a 21,000-track library on an SSD this took under a minute.
  • Migrations v51–v60 are additive, and v0.2.1 opens the migrated database. Before rolling back to v0.2.1, remove the output block from bridge.yaml: v0.2.1 refuses unknown keys. Only bridge output dac bind, the console's Player page or your own edit writes that block.
  • To use the bridge's own player (Linux): on the console's Player page, choose the DAC, switch the player on, and turn on "Let the 1-bit app cast to this player". Then restart the bridge, since it decides its player at start. Stop Volumio's or moOde's own playback on that DAC first: the player opens it exclusively. With 1-bit 2.1 or earlier, the box's own MPD row leaves the app's picker while casting is on.
  • On a Linux box running MPD, output.mpd turns on by itself (auto). The bridge then serves tracks to that MPD on loopback port 7791 without a token, like the DLNA listener. output.mpd: off turns it off.
  • Whole numbers in bridge.yaml are read strictly (B528, B533): a fraction (2.75) or a leading zero (08080) in a whole-number setting stops the bridge from starting, and bridge doctor names the line. bridge init writes neither. Check a hand-edited file before updating: the updater cannot roll back a config that does not load.
  • backup.intervalHours: 0 now takes no snapshot at all (B209).
  • Docker: give the container a fixed hostname, as the shipped compose.yaml does, and set BRIDGE_CUSTOM_ENDPOINTS to the address your phone dials. DLNA in Docker needs the port published on the host's LAN address (docs/docker.md).

Verified before release

  • CI green on the tag commit, a goreleaser dry run, a Docker upgrade test, and the test suite on Windows.
  • ars.md's own bridge (about 21,000 tracks) and one hosted 1-bit Cloud tenant ran the release candidate before the tag.
  • On a Raspberry Pi running Volumio with a USB DAC, cast from the 1-bit app, the bridge's own player:
    • played PCM at the file's own format;
    • refused DSD while PCM played on;
    • released the DAC 30 s into a pause and resumed where it stopped;
    • let the DAC go when the app left.