Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Stats struct { Identify stat.Run ReadMetadata stat.Run }
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec int
const ( Unknown Codec = iota WAV // Waveform Audio File Format ALAC // Apple Lossless Audio Codec FLAC // Free Lossless Audio Codec APE // Monkey's Audio OFR // OptimFROG TAK // Tom's verlustfreier Audiokompressor WV // WavPack TTA // True Audio WMAL // Windows Media Audio Lossless MP3 // MPEG-Lyaer 3 Audio M4A // MPEG4 Audio M4B // MPEG4 Audio Book M4P // MPEG4 Protected Audio AAC // Advanced Audio Coding OGG // Vorbis WMA // Windows Media Audio )
type Metadata ¶
type Metadata interface { Title() string // The primary song title Album() string // The album the song belongs to Artist() string // The primary performer/artist of the song AlbumArtist() string // The album artist Composer() string // The composer of the song Year() int // The release year of the song (not necessarily recording year) Genre() string // The genre of the song Track() (int, int) // The track number of the song, 0 for unknown Disc() (int, int) // The disc number of the song, 0 for unknown Length() time.Duration // The length of the song in milliseconds Comment() string // A comment Copyright() string // Copyright notice, usually in the form YYYY Name Website() string // Website of the performer EncodedBy() string // Who encoded the audio EncoderSettings() string // Any specific encoder settings Encoding() Codec // Codec returns the file codec, or Unknown. EncodingBitrate() int // Bitrate returns the file bitrate in Kbps, or -1 if unknown. OriginalFilename() string // The original filename of the song }
func ReadMetadata ¶
Click to show internal directories.
Click to hide internal directories.