queue

package
v0.3.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	AutoqEnabled bool
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(aqEngine *auto.AQEngine, cache *cache.Cache, enableAutoq bool) *Queue

Make a new q structure. allowChainbreak will make the autoq more random

func (*Queue) AddToQueue

func (q *Queue) AddToQueue(ipfsPath string)

Add the provided song to the queue at the back

func (*Queue) Dump

func (q *Queue) Dump()

Remove all items from the queue. Will not dump the encoder (current and next song)

func (*Queue) GetQueue

func (q *Queue) GetQueue() []string

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) Length

func (q *Queue) Length() int

func (*Queue) NotifyDone

func (q *Queue) NotifyDone(ipfsPath string)

Used as a gateway to let the autoq know a song was played. For training the qutoqueue

func (*Queue) PlayNext

func (q *Queue) PlayNext(ipfsPath string)

Add the provided song to the queue at the front

func (*Queue) Pop

func (q *Queue) Pop() (ipfsPath string, songReader io.Reader, emptyq bool, fromAuto bool)

Returns the audio resource next in the queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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