Documentation ¶
Overview ¶
Package mp3gain uses the mp3gain program to analyze MP3s and compute gain adjustments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeAlbum ¶
ComputeAlbum uses mp3gain to compute gain adjustments for the specified MP3 files, all of which should be from the same album. Keys in the returned map are the supplied paths.
func SetInfoForTest ¶
func SetInfoForTest(info *Info)
SetInfoForTest sets a hardcoded Info object to use instead of actually running the mp3gain program.
Types ¶
type Info ¶
type Info struct { // TrackGain is the track's dB gain adjustment independent of its album. TrackGain float64 // AlbumGain is the album's dB gain adjustment. AlbumGain float64 // PeakAmp is the peak amplitude of the song, with 1.0 being the maximum // amplitude playable without clipping. PeakAmp float64 }
Info contains information about gain adjustments for a song.
Click to show internal directories.
Click to hide internal directories.