Documentation
¶
Index ¶
Constants ¶
View Source
const ( ENCODING_LATIN_1 = C.int(0) ENCODING_UTF_8 = C.int(1) )
Variables ¶
View Source
var ( ErrInvalidFile = errors.New("invalid file") ErrNoPictureFound = errors.New("no embedded picture found") )
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// Tag api.
Tag struct {
Title string
Artist string
Album string
Comment string
Genre string
// 0 if the year is not set.
Year int
// 0 if the track number is not set.
Track int
}
// Audio Properties api.
Audio struct {
// length of the file in seconds.
Length int
// bitrate of the file in kb/s.
Bitrate int
// sample rate of the file in Hz.
Samplerate int
// the number of channels in the audio stream.
Channels int
}
// Properties api.
Props map[string][]string
// contains filtered or unexported fields
}
func (*Info) GetPicture ¶
Click to show internal directories.
Click to hide internal directories.