Skip to content

ddsonic v1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 06:05
· 22 commits to main since this release

Added

  • A sleep timer. Z (Shift+Z), in the library and the queue, steps through 15, 30, 45, 60 and 90 minutes, then off; each choice counts from the moment it is made. The header shows the time left. When the time is up, playback pauses, keeping the track, its position and the queue, and Space resumes. Before that the music fades out, reaching silence when it pauses, without changing your volume setting. The fade lasts 30 seconds by default; [ddsonic] sleep_fade_seconds sets it (0 to 3600, and 0 pauses without a fade). During the fade, a volume or playback command, from a key, the media keys or ddsonic commands, brings the sound back and turns the timer off. The timer is not kept across a restart.
  • In the library's Queue view, X clears the whole queue and Up next, stopping playback; a loaded saved playlist is left as it was. Ctrl+Z brings the cleared queue back (its tracks, order, position, shuffle, repeat, Up next and playlist name) without restarting playback, until the queue next changes.
  • Radio lists sort A–Z by the name they show: Favorites, the cliamp radio channels, a country's or a tag's stations, and the results of "Search the radio directory". A country's or a tag's stations and a directory search are still the directory's 200 most-voted, and say so above their rows ("Top 200 by votes, listed A–Z."). Genres & Tags still lists the most-used tags first, countries stay grouped by region, the live channels queued at startup keep cliamp radio's order, and the library search's Stations section keeps its ranking.

Changed

  • Local > Folders (and o) lists folders and playable audio files, and leaves out other files such as covers, logs and cue sheets; the header says how many it left out. f shows all files, and back, for the session. Dotfiles stay hidden either way.
  • Library rows keep their columns: on every row of a list, a row's detail and a track's number, source and duration each start at the same place. Rows are as wide as their text needs, up to 160 columns or the window, and text is shortened only when the row has no room left. A title or detail that does not fit is cut after a whole word, with "…"; a single word wider than its column, or text without spaces, is cut within it. The queue and Up next are unchanged.
  • The NetEase lyrics fallback is off by default, because it sends the artist and title over unencrypted HTTP. [ddsonic] netease_lyrics = true turns it back on. Lyrics that only NetEase has now show "No lyrics found" unless it is on. See docs/ddsonic/lyrics.md.
  • When the Spotify sign-in could not be renewed for the moment (network or Spotify trouble), the message no longer advises ddsonic spotify reset, which deletes the stored sign-in; it says the sign-in is kept and ddsonic tries again later. When Spotify cannot be reached, the error says Spotify is unavailable for now and the sign-in is kept, rather than "sign-in unavailable".
  • ddsonic upgrade points to the releases page and to building from source, and no longer mentions a package manager or the AUR, where no ddsonic package exists yet.
  • With a reachable stable tag, make build reports the highest such tag, followed by -<commits since>-g<commit> on later commits (it was counted from v1.0.0-rc.3). Release builds are unchanged.

Removed

  • The offer to install yt-dlp at startup. When yt-dlp is missing, ddsonic now prints how to install it and starts with YouTube off. It never runs a package manager, sudo or pip, and never waits for input for this.

Fixed

  • A busy or unreachable lyrics service (a network error, a timeout, or a 429 or 5xx answer from LRCLIB) showed "No lyrics found". When no other source has the lyrics, it now shows "Lyrics service unavailable, try again later."
  • The undo of x and of Up next's d and c could bring back an old queue after another list had been played. The queue's undo now holds only until the queue next changes; Ctrl+Z then says "Nothing to undo".
  • The Linux third-party notices omitted the notice of mpg123's icy2utf8.c. Release builds now include it, and the release script refuses notices without it. The published v1.0.0 files are unchanged.
  • When ~/Music did not exist yet and no music folder was set, Local's index failed at every start: the header read "sync failed · cached" and Local's lists stayed on "Indexing your music…". Local is now simply empty ("No music found in …"), and ddsonic does not create the folder. Everything else behaves as before: a folder you set, a default folder that holds an indexed library (an unmounted drive keeps its index), and an unreadable folder (#82).
  • ddsonic kept sending Spotify Web API requests after Spotify had asked it to wait. Every "too many requests" answer (HTTP 429) now stops them for as long as Spotify's Retry-After asks, or 60 seconds when it gives no usable wait; a later answer never shortens the wait. Nothing is retried inline: a request fails at once with "rate limited until" and the time. The wait is kept in library.db, so a restart does not ask Spotify again early. See docs/ddsonic/catalog.md (#171).
  • A spent Spotify quota (QUOTA_EXCEEDED) was not recognized. ddsonic now says "quota exceeded (no reset time given)" and pauses automatic sync, retries and background album filling, including at the next start, until a sync you start with r (or by signing in) succeeds (#171).
  • Quitting could lose a Spotify wait or quota pause that a request had just brought back, so the next start could send automatic requests. On a normal quit, ddsonic now refuses new Spotify Web API requests at admission (a send admitted just before may still go out, and is waited for), waits up to 5 seconds for the requests already in progress, and tries, within time limits, to record what they bring back before closing the catalog (#177).
  • YouTube Music background work kept going after YouTube answered with a rate limit, a bot check or a spent Data API quota. Automatic sync and track-detail reading now stop at the first such answer and stay stopped, including across restarts, until a sync you start succeeds. Browsing, search and playback are not held (#176, #170).

Known limitations

  • The Spotify limitations listed under 1.0.0 still apply, and the Vorbis one is wider than 1.0.0 states.
  • Spotify playback in Ogg Vorbis: every Vorbis decoder ddsonic opens keeps its memory until you quit, whether or not its track was played, because ddsonic does not close Vorbis decoders (closing one can abort the program with the Spotify library ddsonic uses). About 141 KiB per open was seen in one measurement, with a test file and that computer's libvorbis; that is not an established cost for every system, and the release build was not measured. This is the limitation accepted for 1.0.0, not a new one in 1.1.0.
  • The memory use of long Spotify sessions was not measured by format for this release, for either Ogg Vorbis or MP3. ddsonic can log which format each Spotify stream opened in, but the required format-attributed memory measurements were not completed. In one recorded run on Linux, on a pre-release build and with the format unknown, ddsonic's anonymous resident memory rose from 41,684 to 100,204 KiB, an increase of 58,520 KiB, approximately 57.1 MiB, over about thirty attempted track starts, including failed starts. Those samples were not stabilized, the run was stopped incomplete, and it does not establish a decoder leak. Whether such growth continues, levels off or depends on the format is not known. If ddsonic's memory keeps growing in a long session, quit and restart it. The measurements remain planned for a later release.
  • A brief stutter on pause and resume, and a fragment of the previous track after switching tracks by hand, can still be heard. Both have been seen on Linux and macOS; the cause is not yet known.
  • Spotify and YouTube Music waits and pauses: a request already sent cannot be called back. A pause can outlast the sync that ended it: after a restart, automatic work can stay paused until another sync you start succeeds (it never sends more). Spotify's token refresh, its internal client API (spclient), playback and artwork are outside the Spotify wait. Separate ddsonic processes or profiles each keep their own. Recognizing a YouTube limit depends on yt-dlp's error wording, and yt-dlp's own internal retries are unverified. A wait or pause seen while quitting can still be lost if the 5-second wait or a write's own time limit runs out before it is recorded, or if ddsonic is killed or crashes, and closing the terminal window is not guaranteed to quit normally.
  • On a fresh profile, Spotify's background album filling fetches every saved album's tracks, one album every 10 seconds, so a large library can take hours across sessions. v1.0.0 paces it the same way; bounding it is tracked in #178.
  • Three Spotify recovery paths were verified only against test fakes, not against the real Spotify service: recovery after a refused stream, a long track continuing across a sign-in, and the teardown of a replaced session.
  • Without a network, the cliamp radio error shown at startup can hide the short sleep-timer confirmation; the countdown in the header stays visible. This is v1.0.0's behavior.

Files

The ddsonic executable is distributed under GPL-3.0; ddsonic-*-source.tar.gz is the complete corresponding source for this build. Built for Linux x86-64 (glibc 2.36 or newer); tested on Arch and Debian 13.

92ddcab18a8d398b08ff8e6d1cd27799981cda76b9034fa4c2ce630a058d8f95  ddsonic-1.1.0-linux-amd64.tar.gz
5dbab3011cdde7ab6eae92dde75561b3b1576f8fe1dc9f6f451f20f9882010f5  ddsonic-1.1.0-source.tar.gz
1a6ec48615a8c44ad1650510a369431a28174aa7096a1543418dbd8c7182ba4f  ddsonic-1.1.0-sbom.cdx.json
6e0fb3d2b5a719abcabffb988da68b04ffa8a0626020a8d23b72512f484fc5b8  ddsonic-1.1.0-THIRD_PARTY_NOTICES.txt

Verify the build's provenance with gh attestation verify <file> --repo DaphnisDuck/ddsonic.

macOS (Apple Silicon), provisional

ddsonic-1.1.0-darwin-arm64.tar.gz is built for macOS 13 or later on Apple Silicon (arm64) only. Intel Macs are not supported and were not qualified. It was built by CI on a macOS 26 host; that is the build, not a playback qualification. The maintainer qualified this build on one Apple Silicon Mac running macOS 27. macOS 13 to 25 are within the build target but are not qualified. This is not a statement of broad macOS support.

The commands below apply only when the macOS files listed here are attached to this release under these names.

The binary is ad-hoc signed: it is not signed with an Apple Developer ID and not notarized, so Gatekeeper does not recognise it. The macOS files have no build attestation (gh attestation verify does not cover them) and cannot be reproduced from the tag alone. In the maintainer's observation on one Mac, a browser download was quarantined and blocked, while a curl download was not. That is an observation, not a guarantee. These notes do not give a way around Gatekeeper.

Long-session Spotify/Vorbis memory behavior on macOS was not measured. The Linux D-MEM exception does not apply to macOS.

dae25e23aff8ef0bd021fbff2caa2f47af960420fc2417b6a60c0c21a179b04b  ddsonic-1.1.0-darwin-arm64.tar.gz
67d81825644c08e7ca8491c3499273520c8d7379da55aae64aa110ddd087dc8c  ddsonic-1.1.0-darwin-arm64-sbom.cdx.json
87a5462a58fba475305163e214bed6c8fa9376a94bbf4b2bfe8800812ed1129c  ddsonic-1.1.0-darwin-arm64-THIRD_PARTY_NOTICES.txt
c1ebd08133c0b2087fa32f5b245b1827a82f89073331a733a2e6412b83fef221  ddsonic-1.1.0-darwin-arm64-build-sources.tar.gz
59cbdfe99688457a8e89afb54d5f6675574ce19c6f3a74e985240c997c1c862f  SHA256SUMS-darwin-arm64

Install into a new folder of your own, in Terminal (zsh, bash or sh; no sudo). Each step runs only if the previous one succeeded. mkdir without -p refuses a folder that already exists, so nothing is overwritten, and an existing ddsonic install and your PATH are left alone.

dl=$(mktemp -d "${TMPDIR:-/tmp}/ddsonic-dl.XXXXXX") && cd "$dl" &&
base=https://github.com/DaphnisDuck/ddsonic/releases/download/v1.1.0 &&
curl -fL --proto '=https' \
  -O "$base/ddsonic-1.1.0-darwin-arm64.tar.gz" \
  -O "$base/ddsonic-1.1.0-darwin-arm64-sbom.cdx.json" \
  -O "$base/ddsonic-1.1.0-darwin-arm64-THIRD_PARTY_NOTICES.txt" \
  -O "$base/ddsonic-1.1.0-darwin-arm64-build-sources.tar.gz" \
  -O "$base/SHA256SUMS-darwin-arm64" &&
[ "$(shasum -a 256 SHA256SUMS-darwin-arm64 | cut -d ' ' -f 1)" = 59cbdfe99688457a8e89afb54d5f6675574ce19c6f3a74e985240c997c1c862f ] &&
shasum -a 256 -c SHA256SUMS-darwin-arm64 &&
prefix="$HOME/ddsonic-1.1.0-darwin-arm64" &&
mkdir -m 700 "$prefix" &&
tar -xzf ddsonic-1.1.0-darwin-arm64.tar.gz -C "$prefix" &&
"$prefix/ddsonic-1.1.0-darwin-arm64/ddsonic" --version

The chain stops unless SHA256SUMS-darwin-arm64 itself has the hash listed above, and the check must report OK for all four files. If any step fails, stop: do not retry over the same folder. --version must print exactly:

ddsonic version v1.1.0 (commit 1339569b2c48bc76ac55de372c2ee0295a76edd3)

Run ddsonic from that folder ("$HOME/ddsonic-1.1.0-darwin-arm64/ddsonic-1.1.0-darwin-arm64/ddsonic"); adding it to your PATH is your choice. The download folder is kept; remove it yourself when you no longer need it.

What was qualified, and how. On the macOS 27 Mac, the maintainer played one local file, one radio stream and one public YouTube URL, without browser cookies, in an isolated profile, from a terminal in the Mac's own desktop session (not over SSH), and quit with q. The yt-dlp process and ddsonic-yt-dlp-* temporary-folder counts were 0/0 before, 1/1 during YouTube playback, 0/0 after returning to local playback and 0/0 after quitting. Those counts were observed in that one run; they are not a guarantee of cleanup, and nothing was checked about ffmpeg, a JavaScript runtime or other child processes. The final check for a remaining ddsonic process found none, but its exit status was not recorded separately. Spotify, YouTube Music and the other providers were not qualified on macOS. It took three attempts, all recorded in #88: a run started over SSH failed to initialise audio (inconclusive; the cause was not established); the first desktop run played the local file and the radio stream, but a provider switch replaced the queue and the YouTube step was not completed; a separate follow-up on the desktop passed the YouTube step and the return to local playback.