output

package
v0.0.0-...-53ca941 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandleActionQUIT = iota
	HandleActionPREVIOUS
	HandleActionNEXT
	HandleActionNOP
	HandleActionPauseResume
	HandleActionBackward
	HandleActionForward
	HandleActionSlowdown
	HandleActionSpeedup
	HandleActionIncreaseVolume
	HandleActionDecreaseVolume
	HandleActionRepeat
	HandleActionShuffle
	HandleActionDownload
	HandleActionOriginM3U
	HandleActionFinalM3U
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISpeaker

type ISpeaker interface {
	Initialize()
	Finalize()
	IsPaused() bool
	Play()
	PrePlay(int, int)
	Shutdown()
	PauseResume()
	Backward()
	Forward()
	IncreaseVolume()
	DecreaseVolume()
	Slowdown()
	Speedup()
	Status() (time.Duration, time.Duration, float64, float64)
	IsNil() bool
	UpdateURI(string, chan struct{})
	UpdateStream(int, interface{}, chan struct{})
}

func NewSpeaker

func NewSpeaker() ISpeaker

type ScreenPanel

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

func NewScreenPanel

func NewScreenPanel() *ScreenPanel

func (*ScreenPanel) Draw

func (sp *ScreenPanel) Draw(position time.Duration, length time.Duration, volume float64, speed float64)

func (*ScreenPanel) Finalize

func (sp *ScreenPanel) Finalize()

func (*ScreenPanel) Handle

func (sp *ScreenPanel) Handle(event tcell.Event) (changed bool, action int)

func (*ScreenPanel) Initialize

func (sp *ScreenPanel) Initialize() error

func (*ScreenPanel) PollScreenEvent

func (sp *ScreenPanel) PollScreenEvent() tcell.Event

func (*ScreenPanel) Quit

func (sp *ScreenPanel) Quit() bool

func (*ScreenPanel) SetMessage

func (sp *ScreenPanel) SetMessage(message string)

func (*ScreenPanel) Update

func (sp *ScreenPanel) Update(song provider.Song, index int, total int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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