player

package
v0.0.0-...-ecb31cf Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PLAYLIST_MAX_SIZE = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

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

func NewPlayer

func NewPlayer(lib *library.Library, outport chan<- Request) *Player

func (*Player) Start

func (p *Player) Start(text chan<- string) chan<- Request

Start starts a player routine receiving requests and playing tracks accordingly.

text: if player plays next track, it send the track's cover through this(to panel routine actually).

it returns a channel through which you may send requests to the player routine.

type PlayerMode

type PlayerMode int
const (
	RandomMode PlayerMode = iota
	RepeatMode
	SequentialMode
)

Jump to

Keyboard shortcuts

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