Documentation
¶
Overview ¶
Package gapless finds albums whose songs run straight into each other, such as DJ mixes and live albums, so players leave no gap between them.
Files sometimes say so: iTunes' gapless flag, a MusicBrainz release type of DJ-mix or live, a genre or title like "DJ Mix" or "Mixed by". When they don't, the detector listens to where songs meet: on an album meant to play without gaps, the end of one song and the start of the next are still loud, where songs on other albums fade out or stop, and start from quiet. Getting it wrong costs little either way: songs that already end in silence keep it when played without gaps, and anyone can turn it on or off for an album.
Index ¶
Constants ¶
const Version = 1
Version goes up when the detector changes enough that albums it listened to should be listened to again.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Detector ¶
type Detector struct {
Store *store.Store
FFmpeg string
Prober probe.Prober
Log *slog.Logger
// LowPriority is called with each FFmpeg's process id.
LowPriority func(pid int)
// contains filtered or unexported fields
}
Detector looks at albums and stores what it finds (see store.SetGaplessFound).