sonda/internal/library
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi a92326c1b4 feat(player): play every song at a similar volume with ReplayGain
I want songs from different albums to play at about the same loudness without touching the volume.

- The scan reads REPLAYGAIN_TRACK_GAIN, REPLAYGAIN_ALBUM_GAIN and the two peaks from each file, offline, and keeps them on the file (migration 0029, SQLite and PostgreSQL). A tag that makes no sense (not a number, more than 60 dB) is left out. Files indexed before have none until a full rescan.
- A track in the API carries them as replay_gain (null when its first playable file says nothing).
- The web player levels each song with them: the sound passes through a gain node, so a quiet song can be raised too, but never so much that its peak would clip (and never more than 12 dB when there is no peak). Without Web Audio the element is turned down instead.
- A new Playback section in Settings chooses song by song (default), album by album or off; the choice stays on the device.
- README: the ReplayGain entry, and the old line that said the year was not in the index is removed.
- English and Italian.
2026-11-14 16:02:23 +01:00
..
hub.go feat(library): add concurrent read-only scanner with progress events 2026-11-11 12:16:45 +01:00
libraries.go feat(federation): shared libraries and the signed read API for friends 2026-11-13 15:04:07 +01:00
libraries_test.go feat(federation): shared libraries and the signed read API for friends 2026-11-13 15:04:07 +01:00
manager.go feat(discovery): remove provider data, genres from my files, full rescans 2026-11-11 17:27:29 +01:00
plan_test.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
scanner.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
scanner_test.go fix(discovery): purge lock, cleanup chains and rescans that cannot read 2026-11-11 17:36:14 +01:00
special_unix_test.go feat(library): named media libraries managed through the API 2026-11-11 13:30:25 +01:00
taglib.go feat(player): play every song at a similar volume with ReplayGain 2026-11-14 16:02:23 +01:00
taglib_test.go feat(player): play every song at a similar volume with ReplayGain 2026-11-14 16:02:23 +01:00
types.go feat(player): play every song at a similar volume with ReplayGain 2026-11-14 16:02:23 +01:00