Documentation
¶
Index ¶
- Constants
- type Block
- type Metaflac
- func (m *Metaflac) GetAllTags() []string
- func (m *Metaflac) GetBps() uint8
- func (m *Metaflac) GetBuffer() []byte
- func (m *Metaflac) GetChannels() uint8
- func (m *Metaflac) GetMaxBlocksize() uint16
- func (m *Metaflac) GetMaxFramesize() uint32
- func (m *Metaflac) GetMd5sum() string
- func (m *Metaflac) GetMinBlocksize() uint16
- func (m *Metaflac) GetMinFramesize() uint32
- func (m *Metaflac) GetPicturesSpecs() []PictureSpec
- func (m *Metaflac) GetSampleRate() uint32
- func (m *Metaflac) GetTag(name string) []string
- func (m *Metaflac) GetTotalSamples() uint64
- func (m *Metaflac) GetVendorTag() string
- func (m *Metaflac) ImportPicture(pictureData []byte, spec PictureSpec)
- func (m *Metaflac) RemoveAllTags()
- func (m *Metaflac) RemoveFirstTag(name string)
- func (m *Metaflac) RemoveTag(name string)
- func (m *Metaflac) SetTag(field string) error
- type PictureSpec
Constants ¶
const ( STREAMINFO = 0 PADDING = 1 APPLICATION = 2 SEEKTABLE = 3 VORBIS_COMMENT = 4 CUESHEET = 5 PICTURE = 6 )
Metadata block types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metaflac ¶
type Metaflac struct {
// contains filtered or unexported fields
}
Metaflac handles FLAC metadata manipulation.
func NewMetaflac ¶
NewMetaflac initializes a new Metaflac instance.
func (*Metaflac) GetChannels ¶
GetChannels returns the number of channels from the STREAMINFO block.
func (*Metaflac) GetMaxBlocksize ¶
GetMaxBlocksize returns the maximum block size from the STREAMINFO block.
func (*Metaflac) GetMaxFramesize ¶
GetMaxFramesize returns the maximum frame size from the STREAMINFO block.
func (*Metaflac) GetMinBlocksize ¶
GetMinBlocksize returns the minimum block size from the STREAMINFO block.
func (*Metaflac) GetMinFramesize ¶
GetMinFramesize returns the minimum frame size from the STREAMINFO block.
func (*Metaflac) GetPicturesSpecs ¶
func (m *Metaflac) GetPicturesSpecs() []PictureSpec
GetPicturesSpecs returns the specifications of all imported pictures.
func (*Metaflac) GetSampleRate ¶
GetSampleRate returns the sample rate from the STREAMINFO block.
func (*Metaflac) GetTotalSamples ¶
GetTotalSamples returns the total number of samples from the STREAMINFO block.
func (*Metaflac) GetVendorTag ¶
GetVendorTag returns the vendor string from the VORBIS_COMMENT block.
func (*Metaflac) ImportPicture ¶
func (m *Metaflac) ImportPicture(pictureData []byte, spec PictureSpec)
ImportPicture imports a picture into a PICTURE metadata block.
func (*Metaflac) RemoveAllTags ¶
func (m *Metaflac) RemoveAllTags()
RemoveAllTags removes all tags, leaving only the vendor string.
func (*Metaflac) RemoveFirstTag ¶
RemoveFirstTag removes the first tag with the given name.