wip
This commit is contained in:
@@ -62,6 +62,7 @@ type playbackEngine struct {
|
|||||||
callbacksDisabled bool
|
callbacksDisabled bool
|
||||||
|
|
||||||
playQueue []mediaprovider.MediaItem
|
playQueue []mediaprovider.MediaItem
|
||||||
|
playQueueShuffle []mediaprovider.MediaItem
|
||||||
nowPlayingIdx int
|
nowPlayingIdx int
|
||||||
isRadio bool
|
isRadio bool
|
||||||
loopMode LoopMode
|
loopMode LoopMode
|
||||||
@@ -220,6 +221,8 @@ func (p *playbackEngine) SetPlayer(pl player.BasePlayer) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Interface functions for interacting with the play queue
|
||||||
|
|
||||||
func (p *playbackEngine) PlayTrackAt(idx int) error {
|
func (p *playbackEngine) PlayTrackAt(idx int) error {
|
||||||
return p.playTrackAt(idx, 0)
|
return p.playTrackAt(idx, 0)
|
||||||
}
|
}
|
||||||
@@ -267,7 +270,7 @@ func (p *playbackEngine) GetLoopMode() LoopMode {
|
|||||||
|
|
||||||
func (p *playbackEngine) SetShuffle(shuffle bool) {
|
func (p *playbackEngine) SetShuffle(shuffle bool) {
|
||||||
p.shuffle = shuffle
|
p.shuffle = shuffle
|
||||||
//TODO: Implement functionality
|
//TODO_SHUFFLE: Implement functionality
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *playbackEngine) GetShuffle() bool {
|
func (p *playbackEngine) GetShuffle() bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user