diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-10-04 14:41:05 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-10-04 14:41:05 +1000 |
| commit | 7cc6f198cf437ae60185b65bfa556341be8ec63f (patch) | |
| tree | 5fc3e23a1041ba952fd2298b5d886fe03564890d /src/tangara/audio/track_queue.hpp | |
| parent | 39a5d062fc13ad81e91968e1c30b729ec606d934 (diff) | |
| download | tangara-fw-7cc6f198cf437ae60185b65bfa556341be8ec63f.tar.gz | |
Explicitly close the playlist files in the queue on storage unmount
Diffstat (limited to 'src/tangara/audio/track_queue.hpp')
| -rw-r--r-- | src/tangara/audio/track_queue.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 = |
