Documentation ¶
Index ¶
- Variables
- func InvalidID3v2FrameID(s string) bool
- type ID3v2Frame
- type MP3File
- func (m *MP3File) Close()
- func (m *MP3File) FindFrame(f string) (ID3v2Frame, error)
- func (m *MP3File) ID3Area() int
- func (m *MP3File) ID3v2Flags() byte
- func (m *MP3File) ID3v2Version() (int, int)
- func (m *MP3File) Path() string
- func (m *MP3File) ReadID3v2Frame() (ID3v2Frame, error)
- func (m *MP3File) ValidateID3v2File() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Err_NoID3v2Tag = errors.New("No ID3v2 Tag found") Err_EOF = errors.New("End of frames") Err_InvalidSyncSafe = errors.New("Non-SyncSafe byte in integer") Err_IllegalID3v2Header = errors.New("Illegal ID3v2 header data") Err_IllegalID3v2ExtHeader = errors.New("Illegal ID3v2 extended header data") Err_UnknownID3v2Version = errors.New("Unknown ID3v2 version") Err_ObsoleteID3v2Version = errors.New("Obsolete ID3v2 version") Err_IllegalFrame = errors.New("Illegal frame header") Err_IllegalFrameData = errors.New("Illegal/Unknown frame data") Err_IllegalFrameString = errors.New("Illegal frame string") Err_IllegalFrameStringType = errors.New("Illegal frame string type") )
View Source
var Dbg = dbg.Dbg{false, 0}
Functions ¶
func InvalidID3v2FrameID ¶
Types ¶
type ID3v2Frame ¶
type ID3v2Frame struct { Tag string Size uint32 // data len size if id3v2.4 Flags [2]byte Data []byte VerMaj byte // contains filtered or unexported fields }
func (ID3v2Frame) ToString ¶
func (frm ID3v2Frame) ToString() (string, error)
type MP3File ¶
type MP3File struct {
// contains filtered or unexported fields
}
func OpenMP3File ¶
Opens a file, may or maynot be an MP3 file...
func (*MP3File) ID3v2Flags ¶
func (*MP3File) ID3v2Version ¶
func (*MP3File) ReadID3v2Frame ¶
func (m *MP3File) ReadID3v2Frame() (ID3v2Frame, error)
func (*MP3File) ValidateID3v2File ¶
Validates a file has ID3v2 tag at start, captures info & updates bufio buffer only if ID3v2 tag found
Source Files ¶
Click to show internal directories.
Click to hide internal directories.