taglib

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: LGPL-2.1 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFile = fmt.Errorf("invalid file")
View Source
var ErrSavingFile = fmt.Errorf("can't save file")

Functions

func LoadBinary

func LoadBinary(ctx context.Context, bin []byte)

Types

type File

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

func New

func New(path string) (File, error)

func NewType

func NewType(path string, typ FileType) (File, error)

func (File) Bitrate

func (f File) Bitrate() int

func (File) Channels

func (f File) Channels() int

func (File) Close

func (f File) Close()

func (File) GetTag

func (f File) GetTag(key string) []string

func (File) IterTags

func (f File) IterTags() iter.Seq2[string, []string]

func (File) Length

func (f File) Length() time.Duration

func (File) SampleRate

func (f File) SampleRate() int

func (File) Save

func (f File) Save() error

func (File) SetTag

func (f File) SetTag(key string, vs ...string)

type FileType

type FileType int
const (
	MPEG FileType = iota
	OggVorbis
	FLAC
	MPC
	OggFlac
	WavPack
	Speex
	TrueAudio
	MP4
	ASF
	AIFF
	WAV
	APE
	IT
	Mod
	S3M
	XM
	Opus
	DSF
	DSDIFF
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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