summaryrefslogtreecommitdiff
path: root/src/tangara/audio/track_queue.hpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-08-15 12:42:57 +1000
committerailurux <ailuruxx@gmail.com>2024-08-15 12:42:57 +1000
commit5ab4c2f0d6eda97b73ac789f3d8fd39bd97eeddb (patch)
tree3c25f015ea8353c76230cff516a0872125c6f124 /src/tangara/audio/track_queue.hpp
parent40c754a72a23a849321b60dbd77fa1303c77953b (diff)
downloadtangara-fw-5ab4c2f0d6eda97b73ac789f3d8fd39bd97eeddb.tar.gz
Update position when updating the shuffler
Diffstat (limited to 'src/tangara/audio/track_queue.hpp')
-rw-r--r--src/tangara/audio/track_queue.hpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>;
mutable std::shared_mutex mutex_;