Documentation ¶
Index ¶
- Variables
- func GetCCharPointer(s string) *C.char
- type File
- func (file *File) Album() string
- func (file *File) Artist() string
- func (file *File) Bitrate() int
- func (file *File) Channels() int
- func (file *File) Close()
- func (file *File) Comment() string
- func (file *File) Genre() string
- func (file *File) Length() time.Duration
- func (file *File) Samplerate() int
- func (file *File) Save() error
- func (file *File) SetAlbum(s string)
- func (file *File) SetArtist(s string)
- func (file *File) SetComment(s string)
- func (file *File) SetGenre(s string)
- func (file *File) SetTag(tagname TagName, tagvalue string)
- func (file *File) SetTitle(s string)
- func (file *File) SetTrack(i int)
- func (file *File) SetYear(i int)
- func (file *File) Tag(tagname TagName) (tagvalue string)
- func (file *File) Title() string
- func (file *File) Track() int
- func (file *File) Year() int
- type TagName
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalid = errors.New("invalid file")
)
Functions ¶
func GetCCharPointer ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func Read ¶
Reads and parses a music file. Returns an error if the provided filename is not a valid file.
func (*File) Samplerate ¶
Returns the sample rate of the file in Hz.
Click to show internal directories.
Click to hide internal directories.