id3v1

package
v0.0.0-...-c5379f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

id3v1 is a package allowing the extraction of id3v1 tags. See http://en.wikipedia.org/wiki/ID3#ID3v1

Index

Constants

View Source
const (
	Size       = 128
	HeaderCode = "TAG"
)
View Source
const (
	TagPlusSize = 227
)
View Source
const (
	// TagSize is the size in bytes of an id3v1 tag
	TagSize = 128
)

Variables

View Source
var (
	HeaderTagID = []byte{0x54, 0x41, 0x47}
)
View Source
var (
	//TagCode is the byte representation of "TAG"
	TagCode = []byte{84, 65, 71}
)
View Source
var (
	TagPlusCode = []byte{84, 65, 71, 43} // "TAG+"
)

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Title  [30]byte
	Artist [30]byte
	Album  [30]byte
	Year   [4]byte
	// The track number is stored in the last two bytes of the comment field.
	// If the comment is 29 or 30 characters long, no track number can be stored.
	Comment  [30]byte
	ZeroByte byte
	Track    byte
	Genre    byte
}

Tag contains the various information stored in a id3 v1 tag. Strings are either space or zero-padded. Unset string entries are filled using an empty string. ID3v1 is 128 bytes long

type TagPlugs

type TagPlugs struct {
	Title  [60]byte
	Artist [60]byte
	Album  [60]byte
	// 0=unset, 1=slow, 2= medium, 3=fast, 4=hardcore
	Speed uint8
	// A free-text field for the genre
	Genre [30]byte
	// the start of the music as mmm:ss
	StartTime [6]byte
	// the end of the music as mmm:ss
	EndTime [6]byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL