Documentation ¶
Index ¶
- type TrackManager
- func (tm *TrackManager) Find(trackPath string) *sources.Track
- func (tm *TrackManager) NextToPlayAfter(trackPath string) *sources.Track
- func (tm *TrackManager) Push(track *sources.Track)
- func (tm *TrackManager) Remove(track *sources.Track)
- func (tm *TrackManager) RemoveAll()
- func (tm *TrackManager) TopCurrentTrack() *sources.Track
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) 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
Click to show internal directories.
Click to hide internal directories.