jukebox

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jukebox

type Jukebox struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(musicPath string) *Jukebox

func (*Jukebox) AddTracks

func (j *Jukebox) AddTracks(tracks []*db.Track)

func (*Jukebox) ClearTracks

func (j *Jukebox) ClearTracks()

func (*Jukebox) GetStatus added in v0.9.0

func (j *Jukebox) GetStatus() Status

func (*Jukebox) GetTracks

func (j *Jukebox) GetTracks() []*db.Track

func (*Jukebox) Listen

func (j *Jukebox) Listen() error

func (*Jukebox) Quit

func (j *Jukebox) Quit()

func (*Jukebox) RemoveTrack

func (j *Jukebox) RemoveTrack(i int)

func (*Jukebox) SetTracks

func (j *Jukebox) SetTracks(tracks []*db.Track)

func (*Jukebox) Skip

func (j *Jukebox) Skip(i int, offset int)

func (*Jukebox) Start

func (j *Jukebox) Start()

func (*Jukebox) Stop

func (j *Jukebox) Stop()

type Status added in v0.9.0

type Status struct {
	CurrentIndex int
	Playing      bool
	Gain         float64
	Position     int
}

Jump to

Keyboard shortcuts

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