reordered playqueue func
This commit is contained in:
@@ -241,6 +241,11 @@ func (p *playbackEngine) setPlayQueue(items []mediaprovider.MediaItem) {
|
||||
}
|
||||
}
|
||||
|
||||
// rename to GetPlayQueueExternal
|
||||
func (p *playbackEngine) GetPlayQueue() []mediaprovider.MediaItem {
|
||||
return deepCopyMediaItemSlice(p.playQueue)
|
||||
}
|
||||
|
||||
func (p *playbackEngine) PlayTrackAt(idx int) error {
|
||||
return p.playTrackAt(idx, 0)
|
||||
}
|
||||
@@ -462,10 +467,6 @@ func (p *playbackEngine) StopAndClearPlayQueue() {
|
||||
}
|
||||
}
|
||||
|
||||
func (p *playbackEngine) GetPlayQueue() []mediaprovider.MediaItem {
|
||||
return deepCopyMediaItemSlice(p.playQueue)
|
||||
}
|
||||
|
||||
// Any time the user changes the favorite status of a track elsewhere in the app,
|
||||
// this should be called to ensure the in-memory track model is updated.
|
||||
func (p *playbackEngine) OnTrackFavoriteStatusChanged(id string, fav bool) {
|
||||
|
||||
Reference in New Issue
Block a user