v1

package
v0.0.0-...-59e3c3d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2013 Michael Yang. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	TagSize = 128
)

Variables

View Source
var (
	Genres = []string{
		"Blues", "Classic Rock", "Country", "Dance",
		"Disco", "Funk", "Grunge", "Hip-Hop",
		"Jazz", "Metal", "New Age", "Oldies",
		"Other", "Pop", "R&B", "Rap",
		"Reggae", "Rock", "Techno", "Industrial",
		"Alternative", "Ska", "Death Metal", "Pranks",
		"Soundtrack", "Euro-Techno", "Ambient", "Trip-Hop",
		"Vocal", "Jazz+Funk", "Fusion", "Trance",
		"Classical", "Instrumental", "Acid", "House",
		"Game", "Sound Clip", "Gospel", "Noise",
		"AlternRock", "Bass", "Soul", "Punk",
		"Space", "Meditative", "Instrumental Pop", "Instrumental Rock",
		"Ethnic", "Gothic", "Darkwave", "Techno-Industrial",
		"Electronic", "Pop-Folk", "Eurodance", "Dream",
		"Southern Rock", "Comedy", "Cult", "Gangsta",
		"Top 40", "Christian Rap", "Pop/Funk", "Jungle",
		"Native American", "Cabaret", "New Wave", "Psychadelic",
		"Rave", "Showtunes", "Trailer", "Lo-Fi",
		"Tribal", "Acid Punk", "Acid Jazz", "Polka",
		"Retro", "Musical", "Rock & Roll", "Hard Rock",
	}
)

Functions

This section is empty.

Types

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

Tag represents an ID3v1 tag

func ParseTag

func ParseTag(readSeeker io.ReadSeeker) *Tag

func (Tag) AddFrames

func (t Tag) AddFrames(f ...v2.Framer)

func (Tag) Album

func (t Tag) Album() string

func (Tag) AllFrames

func (t Tag) AllFrames() []v2.Framer

func (Tag) Artist

func (t Tag) Artist() string

func (Tag) Bytes

func (t Tag) Bytes() []byte

func (Tag) Comments

func (t Tag) Comments() []string

func (Tag) DeleteFrames

func (t Tag) DeleteFrames(id string) []v2.Framer

func (Tag) Dirty

func (t Tag) Dirty() bool

func (Tag) Frame

func (t Tag) Frame(id string) v2.Framer

func (Tag) Frames

func (t Tag) Frames(id string) []v2.Framer

func (Tag) Genre

func (t Tag) Genre() string

func (Tag) Padding

func (t Tag) Padding() uint

Dummy methods to satisfy Tagger interface

func (*Tag) SetAlbum

func (t *Tag) SetAlbum(text string)

func (*Tag) SetArtist

func (t *Tag) SetArtist(text string)

func (*Tag) SetGenre

func (t *Tag) SetGenre(text string)

func (*Tag) SetTitle

func (t *Tag) SetTitle(text string)

func (*Tag) SetYear

func (t *Tag) SetYear(text string)

func (Tag) Size

func (t Tag) Size() int

func (Tag) Title

func (t Tag) Title() string

func (Tag) Version

func (t Tag) Version() string

func (Tag) Year

func (t Tag) Year() string

Jump to

Keyboard shortcuts

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