trackmanager

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrackManager

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

Manager for player Tracks the sequnce of played songs

func New

func New() *TrackManager

func (*TrackManager) Find

func (tm *TrackManager) Find(trackPath string) *sources.Track

func (*TrackManager) NextToPlayAfter

func (tm *TrackManager) NextToPlayAfter(trackPath string) *sources.Track

Returns a track which it connected to the passed trackPath

func (*TrackManager) Push

func (tm *TrackManager) Push(track *sources.Track)

Pushed a new track to the sequence connecting it to already present ones

func (*TrackManager) Remove

func (tm *TrackManager) Remove(track *sources.Track)

Removes passed track from the player sequence

func (*TrackManager) RemoveAll

func (tm *TrackManager) RemoveAll()

func (*TrackManager) TopCurrentTrack

func (tm *TrackManager) TopCurrentTrack() *sources.Track

Returns track which is not paused and is being currently played

Jump to

Keyboard shortcuts

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