Gapless playback, crossfade and volume levelling

- Two-deck player keeps the next song loaded and buffered, and blends it in 20 ms
  before the current one ends, so albums and playlists play without gaps
- Skipping to the next song uses the preloaded deck, so it starts instantly
- Optional crossfade (up to 12 s); songs from the same album stay gapless
- Optional volume levelling: uses ReplayGain tags or measures each song once
  (-14 LUFS, capped so boosts never clip); files are never changed
- Playback section at the top of Settings
This commit is contained in:
Christian
2026-11-18 22:25:12 -05:00
parent f6db780bca
commit 93db117243
9 changed files with 371 additions and 31 deletions
+2
View File
@@ -238,6 +238,7 @@ async function init() {
bindMini();
bindConnect();
bindUpdates();
bindPlaybackSettings();
bindStats();
await listen("atmosphere://job", (e) => onJob(e.payload));
await listen("atmosphere://probe", (e) => onProbe(e.payload));
@@ -1471,6 +1472,7 @@ function renderSettings() {
$("#rightsInfo").textContent = at ? `You agreed on ${at}. Withdrawing it cancels downloads and asks again in the app.` : "Not confirmed yet.";
renderTemplatePreview();
renderSignin();
if (typeof renderPlaybackSettings === "function") renderPlaybackSettings();
if (typeof renderApiSettings === "function") renderApiSettings();
renderToolSettings();
renderLibrarySettings();