mpeg

package
v0.0.0-...-9992a52 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFrames

func GetFrames(f os.File, framesToRead int) ([]byte, error)

GetFrames ...

func SeekTo1StFrame

func SeekTo1StFrame(f os.File) int64

SeekTo1StFrame ...

Types

type Info

type Info struct {
	BitRate        float64
	SPF            int
	SampleRate     int
	Channels       int
	NumberOfFrames int
	Skipped        int
	FramesToRead   int
	Frames         []mp3.Frame
}

Info holds the information. Don't print the whole thing. It's going to be bad.

func GetInfo

func GetInfo(filename string) (info Info, e error)

GetInfo get the needed information about filename.

func (Info) TimeBetweenTracks

func (i Info) TimeBetweenTracks(began time.Time) time.Duration

TimeBetweenTracks returns the time to pause between tracks.

Jump to

Keyboard shortcuts

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