From 7cc6f198cf437ae60185b65bfa556341be8ec63f Mon Sep 17 00:00:00 2001 From: ailurux Date: Fri, 4 Oct 2024 14:41:05 +1000 Subject: Explicitly close the playlist files in the queue on storage unmount --- src/tangara/audio/track_queue.hpp | 5 +++-- 1 file changed, 3 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 727b4be0..383c204e 100644 --- a/src/tangara/audio/track_queue.hpp +++ b/src/tangara/audio/track_queue.hpp @@ -76,8 +76,9 @@ class TrackQueue { auto currentPosition(size_t position) -> bool; auto totalSize() const -> size_t; auto open() -> bool; - auto openPlaylist(const std::string& playlist_file, bool notify = true) - -> bool; + auto close() -> void; + auto openPlaylist(const std::string& playlist_file, + bool notify = true) -> bool; auto playFromPosition(const std::string& filepath, uint32_t position) -> void; using Item = -- cgit v1.2.3