probers

package
v0.0.0-...-cab0b4b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasProber

func HasProber(mime string) bool

func Initialize

func Initialize()

Types

type AudioMeta

type AudioMeta struct {
	Title       string
	Artist      string
	Album       string
	Track       int
	TotalTracks int
	Year        int
	AlbumArtist string
	Genre       string
	Duration    float64

	CoverBufer []byte
}

func ProbeAudioFile

func ProbeAudioFile(file string) (meta *AudioMeta, err error)

ProbeAudioFile Probes a file and tries to fill in AudioMeta. meta is not nil if there was no error.

func (*AudioMeta) IsComplete

func (a *AudioMeta) IsComplete() bool

func (*AudioMeta) Merge

func (a *AudioMeta) Merge(b *AudioMeta)

Merge Set a's attributes to the attributes that b has more.

type AudioProber

type AudioProber interface {
	// Probe Only returns nil if there was an error.
	ProbeAudio(file string) (*AudioMeta, error)

	fmt.Stringer
}

Jump to

Keyboard shortcuts

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