Commit Graph
100 Commits
Author SHA1 Message Date
ailurux 4ad5f1b637 Reduce horizontal spacing on controls for more room for additional info button 2025-01-06 14:45:17 +11:00
ailurux f219886753 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-12-30 11:04:33 +11:00
ailurux dac29bf986 Fix issue with playlists restarting playback after enqueuing 2024-12-30 11:04:03 +11:00
ailurux ae6746fc95 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-12-23 16:21:39 +11:00
ailurux 35520ef177 Make media directories case insensitive 2024-12-23 16:21:22 +11:00
ailuruxandcooljqln 5cdc1141ee Queue repeat modes (#126)
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-19 04:29:23 +00:00
ailurux a1d64dce07 Allow for connecting to the paired device from the known devices list 2024-12-10 13:30:27 +11:00
ailurux 048cfd705f Audio FSM should transit to Standby when BT disconnect 2024-12-10 10:25:44 +11:00
ailurux 0810c05d13 Prevent frame decoding issues with FLAC from ending playback early 2024-12-09 13:23:27 +11:00
ailurux b2548a1f0b Fixed issue with saving positions, and only auto-resume long-form content 2024-10-08 15:38:39 +11:00
ailurux d27590f8a7 Change top bar icons to black for contrast and consistency 2024-10-08 11:07:04 +11:00
ailurux d3791d557f Don't create a cache file on deserialising 2024-10-04 16:04:19 +10:00
ailurux 7cc6f198cf Explicitly close the playlist files in the queue on storage unmount 2024-10-04 14:41:05 +10:00
ailurux 39a5d062fc Fix issues with deserialising queue when queue exists already 2024-10-04 14:19:13 +10:00
ailurux ea71fa5d2b Clear queue if loading cache fails and file is large, also fix indices oops 2024-10-03 14:06:50 +10:00
ailurux 1d2153f69d Clean up + use 8 bytes for uint64_t 2024-10-03 11:19:42 +10:00
ailurux a169e60cac Add additional cache file for playlist table of contents 2024-10-01 17:42:42 +10:00
ailurux 3490cceb6b Added listened indicator for audiobooks and podcasts 2024-09-27 16:59:59 +10:00
ailurux f8a6c8c85a Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-09-26 13:26:46 +10:00
ailurux de351a5b89 Empty the buffer when we seek mp3 files 2024-09-26 13:26:35 +10:00
ailurux 5e43b42218 Adds audiobook index to available indexes 2024-09-24 13:41:36 +10:00
ailurux 2bc191e63d Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-09-24 13:40:59 +10:00
ailurux cb40ac4120 Format hours properly for times shown and ensure centering of playlist position labels 2024-09-24 13:40:50 +10:00
ailurux e91580c75b Implement VBR seeking based off TOC 2024-09-23 17:53:03 +10:00
ailurux eba2ffc260 Improve seeking for constant bitrate mp3 2024-09-23 14:42:25 +10:00
ailurux 7f43d4d126 Add luals stubs for new methods 2024-09-19 14:04:13 +10:00
ailurux e96dcde085 Fix commented issues 2024-09-19 13:26:04 +10:00
ailurux 3be8ae3349 Remove logging 2024-09-17 14:18:05 +10:00
ailurux c479d699d0 Implements seeking to saved position for tracks 2024-09-17 14:13:05 +10:00
ailurux 6c1757a176 Merge branch 'main' into daniel/persistent-positions 2024-09-17 14:12:17 +10:00
ailurux c4ec089a90 Added lua methods to access track data 2024-09-17 11:56:19 +10:00
ailurux f58679983e Save positions over 5 minutes, every minute 2024-09-13 15:23:03 +10:00
ailurux 79dccc2685 Merge branch 'main' into daniel/persistent-positions 2024-09-13 13:45:15 +10:00
ailurux ca5e866a2f Remove explicit opacity set on header 2024-09-12 21:28:50 +10:00
ailurux df8de179e0 Merge branch 'main' into daniel/persistent-positions 2024-09-12 21:09:05 +10:00
ailurux d4bad11130 WIP: Fixed errors, cleanup 2024-09-12 21:08:11 +10:00
ailurux 4353779810 WIP: Add last_position field to track data and start on implementation 2024-09-12 17:35:22 +10:00
ailuruxandcooljqln 9a47e43ab7 daniel/theme-tweaks (#102)
- Multiple improvements + fixes
- Add charge outline icon for improving readability with monochromatic themes
- Add a chevron icon and update existing dropdown menus
- Rename `set_style` to `set_subject` for disambiguation with lvgl's Style type

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/102
Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-09-12 05:20:07 +00:00
ailurux 1f5ce24389 Rename set_style to set_subject 2024-09-10 15:58:03 +10:00
ailuruxandcooljqln 45937ac648 High contrast theme + Icon Improvements (#100)
Updated settings icon, rounded the circular play/pause icons, and addition of a new high contrast theme. Would be good to get feedback on the high contrast theme at this stage, as my intention is to use it as the basis for other 2-colour themes.

One issue I'm aware of is the charge indicator when recoloured to black is not very legible on the black battery icon. I am planning on adding an additonal outline image that can be recoloured to the background colour to make it stand out more. Happy to fix that in a later PR or I can add it now but it will take a bit of work.

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/100
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-09-09 00:24:08 +00:00
ailurux 20d5de38cc Style regulatory icons so they are visible with the light theme 2024-08-29 16:08:11 +10:00
ailuruxandjacqueline 96a224c0df Lua API improvements and fixes
Co-authored-by: jacqueline <me@jacqueline.id.au>
2024-08-29 15:20:22 +10:00
ailurux e0b057b3fa Various UI tweaks and improvements 2024-08-27 16:30:40 +10:00
ailurux a09b3f24fe Update battery icon to be a bit smaller 2024-08-27 13:19:39 +10:00
ailurux e6c77f17b8 Switch output mode to headphones when plugged in 2024-08-26 15:43:00 +10:00
ailurux e1b2149210 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-08-26 11:15:48 +10:00
ailurux 978429109e Fix queue serialisation so that the position is correctly applied 2024-08-26 11:15:27 +10:00
ailurux 0f9005626d Redesigned many icons, added styles for battery icon recolouring based on percentage 2024-08-16 16:56:58 +10:00
ailurux 9cdb268b2b Updated a few icons 2024-08-16 13:04:44 +10:00
ailurux f203bfde60 Add border to switch widget 2024-08-15 16:36:16 +10:00
ailurux 0662bb037b Some UI/themes tweaks 2024-08-15 16:14:18 +10:00
ailurux 98cc3edb01 Add luals-stub for queue open_playlist 2024-08-15 13:09:38 +10:00
ailurux 40e08f4823 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-08-15 12:46:43 +10:00
ailurux 5ab4c2f0d6 Update position when updating the shuffler 2024-08-15 12:42:57 +10:00
ailurux 022aa38396 Fix for position persisting when queue reset 2024-08-14 10:19:26 +10:00
ailuruxandcooljqln d719f9c501 daniel/theme-setting (#87)
- Themes can be loaded from disk and built-in
- Themes can be selected in a new themes menu of the settings screen
- Some touch-ups to existing themes
- The saved theme is persisted in nvs

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/87
Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-08-12 03:19:03 +00:00
ailuruxandcooljqln b349599174 daniel/playlist-queue (#84)
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-30 04:36:48 +00:00
ailurux 8597590732 Increase bluetooth stack size 2024-07-23 16:20:45 +10:00
ailurux a440d71bef Continue decoding even if OV_HOLE is returned 2024-07-22 16:04:20 +10:00
ailurux 6f98eaf85e Fix off by one error 2024-07-22 15:54:44 +10:00
ailurux 496baefe66 Oops, forgot a return statement 2024-07-22 15:42:20 +10:00
ailurux 514540d89c Queue now keeps file offsets in memory to speed up search 2024-07-22 14:37:05 +10:00
ailurux bc2527135a Fix std::optional access 2024-07-16 14:39:01 +10:00
ailuruxandcooljqln 0a271d786b daniel/playlist-queue (#83)
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-07-16 01:23:43 +00:00
ailurux cb9560428d Fix issue with previous not working with shuffle 2024-06-18 15:30:35 +10:00
ailuruxandjacqueline 7c107e739a Add basic bluetooth queue controls 2024-06-11 08:52:31 +10:00
ailuruxandcooljqln 8de07fe8fa daniel/bluetooth-avrc (#80)
Have a squizzy and lemme know if any issues @cooljqln 🐝

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/80
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-06-06 04:52:00 +00:00
ailurux 9dbcd6a5c8 Fix prev/next behaviour on database iterator
Fixes issue with apparent duplicated tracks in the infinite list
2024-05-30 13:49:56 +10:00
ailurux ef812a53e5 Minor formatting fix 2024-05-29 08:18:31 +10:00
ailurux 9d67ddcf6e Fix issue where failing to connect bt device initially won't retry 2024-05-29 08:14:07 +10:00
ailurux e7272af4ae Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-14 16:36:46 +10:00
ailurux e06a096194 Minor improvements to infinite list widget 2024-05-14 16:34:37 +10:00
ailurux ce9861260d Remove unused local var 2024-05-10 14:18:04 +10:00
ailurux e06610f3a6 Minor fixes before PR 2024-05-10 13:27:01 +10:00
ailurux 0062eb9a9e Rename widget to InfiniteList 2024-05-10 13:16:29 +10:00
ailurux ee5657cb44 Fix imports after merge 2024-05-10 13:07:12 +10:00
ailurux 3f177cdb88 Merge branch 'main' into file-browser 2024-05-10 13:06:20 +10:00
ailurux e4ce7c4ac2 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-05-10 12:20:51 +10:00
ailurux 5b109ed327 Tweaks to default d-pad controls 2024-05-10 12:20:25 +10:00
ailurux 8019c76918 File browser and track browser bug fixes 2024-05-06 15:48:04 +10:00
ailurux eeb3f2d406 WIP: File browser, needs bug fixes 2024-05-06 12:36:16 +10:00
ailurux fb3d6a7b86 WIP: Add destructor for FileIterator 2024-05-02 17:08:40 +10:00
ailurux 4aed95a3cd WIP: Lua filesystem starting point 2024-05-02 17:02:58 +10:00
ailurux 4eb1a074f7 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-04-22 09:48:21 +10:00
ailurux dfccf56f34 Add support for 64-bit float wav files 2024-04-22 09:48:08 +10:00
ailuruxandcooljqln 7f630cebdd daniel/recycler-list (#66)
@cooljqln should be good to merge to main, give it a look over though please? :)

Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/66
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-04-19 02:06:37 +00:00
ailurux f20ca9583a Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-04-08 15:40:16 +10:00
ailurux 01ae3fee30 Status bar consistency improvements 2024-04-08 15:40:07 +10:00
ailurux 25dca40e5d Fix volume getters/setters for bluetooth 2024-04-02 15:03:49 +11:00
ailurux e20ebe7574 Merge branch 'main' into lua-volume 2024-04-02 11:13:50 +11:00
ailurux a750af35aa Added bluetooth db impl 2024-04-02 11:11:44 +11:00
ailurux 7c5dae8417 Remove unused variable 2024-03-28 16:34:04 +11:00
ailurux 79b6c3b393 Use luaL_checkstring in set_style 2024-03-28 16:29:23 +11:00
ailurux c8e67cbd80 Merge branch 'main' into themes 2024-03-28 16:17:39 +11:00
ailurux f1c8866b81 Check type is actually a table 2024-03-28 16:03:37 +11:00
ailurux 78c708e939 Fix log message 2024-03-28 15:36:27 +11:00
ailurux 10441162c4 Fix for adding multiple styles with the same key 2024-03-28 15:36:16 +11:00
ailurux bf58cb7acf Minor fixes 2024-03-27 16:11:36 +11:00
ailurux 489fbceb2b Update icons and volume dialogue to use themes 2024-03-27 16:07:22 +11:00
ailurux 223c4cbbc9 Allow image recoloring properties to be inherited by children 2024-03-27 15:41:22 +11:00