Documentation ¶
Index ¶
- Constants
- func ReadTags(filename string) (map[string]string, error)
- type AudioProperties
- func Read(filename string) (map[string]string, *AudioProperties, error)
- func ReadAudioProperties(filename string) (*AudioProperties, error)
- func ReadFromData(data []byte) (map[string]string, *AudioProperties, error)
- func ReadFromDataWithName(filename string, data []byte) (map[string]string, *AudioProperties, error)
- type File
- func (f *File) Close()
- func (f *File) ReadAudioProperties() *AudioProperties
- func (f *File) ReadTags() map[string]string
- func (f *File) RemovePictures() bool
- func (f *File) WritePicture(data []byte, fmt, w, h int) bool
- func (f *File) WriteTag(tag, value string) bool
- func (f *File) WriteTags(tag_map map[string]string) bool
Constants ¶
View Source
const ( JPEG = iota PNG = iota )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioProperties ¶
type AudioProperties struct {
Length, LengthMs, Bitrate, Samplerate, Channels int
}
func ReadAudioProperties ¶
func ReadAudioProperties(filename string) (*AudioProperties, error)
func ReadFromData ¶
func ReadFromData(data []byte) (map[string]string, *AudioProperties, error)
func ReadFromDataWithName ¶
type File ¶
type File C.TagLib_FileRefRef
func (*File) ReadAudioProperties ¶
func (f *File) ReadAudioProperties() *AudioProperties
func (*File) RemovePictures ¶
Click to show internal directories.
Click to hide internal directories.