From 5ab4c2f0d6eda97b73ac789f3d8fd39bd97eeddb Mon Sep 17 00:00:00 2001 From: ailurux Date: Thu, 15 Aug 2024 12:42:57 +1000 Subject: Update position when updating the shuffler --- src/tangara/audio/track_queue.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tangara/audio/track_queue.hpp') diff --git a/src/tangara/audio/track_queue.hpp b/src/tangara/audio/track_queue.hpp index 72713242..b66d18d1 100644 --- a/src/tangara/audio/track_queue.hpp +++ b/src/tangara/audio/track_queue.hpp @@ -80,7 +80,7 @@ class TrackQueue { auto insert(Item, size_t index = 0) -> void; auto append(Item i) -> void; - auto updateShuffler() -> void; + auto updateShuffler(bool andUpdatePosition) -> void; /* * Advances to the next track in the queue, placing the current track at the @@ -117,7 +117,7 @@ class TrackQueue { private: auto next(QueueUpdate::Reason r) -> void; - auto goTo(size_t position); + auto goTo(size_t position) -> void; auto getFilepath(database::TrackId id) -> std::optional; mutable std::shared_mutex mutex_; -- cgit v1.2.3