reordered playqueue func

This commit is contained in:
Siiiiinth
2026-02-15 09:28:38 -08:00
committed by Drew Weymouth
parent 72f2068dc3
commit 65081246d9
+5 -4
View File
@@ -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 { func (p *playbackEngine) PlayTrackAt(idx int) error {
return p.playTrackAt(idx, 0) 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, // 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. // this should be called to ensure the in-memory track model is updated.
func (p *playbackEngine) OnTrackFavoriteStatusChanged(id string, fav bool) { func (p *playbackEngine) OnTrackFavoriteStatusChanged(id string, fav bool) {