summaryrefslogtreecommitdiff
path: root/src/tangara/audio/track_queue.cpp
AgeCommit message (Collapse)Author
2025-01-31Fix playlists not setting the queue to readyailurux
2025-01-17Fix audiobook/podcast queue methodailurux
2025-01-07Improvements to the queue for shuffling/playing all (#170)ailurux
Queue now has a separate 'ready' property to indicate it's ready to be used, which is independent from whether it's still loading tracks in. This also improves the response time for shuffling all tracks (we will initially pick a random track in the first 100 tracks whilst the rest of the tracks are loading). This should also fix issues where one song will start playing and then repeat itself when the queue finishes loading, and hopefully solve #160 as well (though I couldn't actually repro this myself). Co-authored-by: jacqueline <me@jacqueline.id.au> Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/170 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org> Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-12-30Fix issue with playlists restarting playback after enqueuingailurux
2024-12-19Queue repeat modes (#126)ailurux
This replaces the previous system of a separate track and queue repeat, with a RepeatMode type with the following options and behaviours: - OFF: No repeat, queue or track. When the current queue finishes, shuffled or otherwise, playback will stop. - REPEAT_TRACK: The current track will loop indefinitely, unless next is explicitly called through some user action (ie using the next button in the now playing screen) - REPEAT_QUEUE: The entire queue will repeat indefinitely. When shuffled is enabled this will repeat the queue with new combinations each cycle. The repeat mode is persisted in non-volatile storage, so the behaviour will be consistent throughout restarts and queue replacements, and so the "queue repeat by default" use case can be met in this way. In addition, I've made it work a little nicer when the queue runs out in the now playing screen, keeping the previously played track shown and playback can be continued by using the play button or by going to a previous song in the queue. Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/126 Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-12-16Make now-playing queue circularmalcircuit
2024-10-04Explicitly close the playlist files in the queue on storage unmountailurux
2024-10-01Add additional cache file for playlist table of contentsailurux
2024-09-17Implements seeking to saved position for tracksailurux
2024-08-29Lua API improvements and fixesailurux
Co-authored-by: jacqueline <me@jacqueline.id.au>
2024-08-28Support adding filepaths to the track queuejacqueline
2024-08-28clang-formatjacqueline
2024-08-28Handle the loading state whilst appending many tracks betterjacqueline
1) Update the queue length periodically so that the user can see we're working 2) Clear any previous track and display "loading..." instead
2024-08-26Fix queue serialisation so that the position is correctly appliedailurux
2024-08-15Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fwailurux
2024-08-15Update position when updating the shufflerailurux
2024-08-15Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fwjacqueline
2024-08-14Fix for position persisting when queue resetailurux
2024-08-13Don't spuriously report that the current track has changedjacqueline
Fixes the last track in the queue repeating forever
2024-08-07Don't try to serialise a missing playlist namejacqueline
2024-07-30daniel/playlist-queue (#84)ailurux
Support for playlist files being opened along side the queue's own playlist. Playlists can be opened from the file browser, if the file ends in ".playlist" (will add support for .m3u as well eventually) Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/84 Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-07-16Fix std::optional accessailurux
2024-07-16daniel/playlist-queue (#83)ailurux
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/83 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org> Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-05-02start moving include files into subdirsjacqueline
2024-05-02WIP merge cyclically dependent components into one big componentjacqueline