player

package
v0.0.0-...-aac1211 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

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

func UsePlayer

func UsePlayer() *Player

func (*Player) Pause

func (a *Player) Pause(trackPath string)

func (*Player) Play

func (a *Player) Play(trackPath string, opts PlayerOpts)

TODO: create effect of volume lowering when music is stoped

func (*Player) Stop

func (a *Player) Stop(trackPath string)

Stops playing of current track(if track is set)

func (*Player) StopAll

func (p *Player) StopAll()

Stops all the played tracks

type PlayerOpts

type PlayerOpts struct {
	Infinite, Fading bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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