Commit Graph
1026 Commits
Author SHA1 Message Date
ailurux 6c1757a176 Merge branch 'main' into daniel/persistent-positions 2024-09-17 14:12:17 +10:00
jacqueline 7d1266404d Move SPI ISR back to CPU0
See if this does anything for the itermittent spi acquire hangs
2024-09-17 11:57:32 +10:00
ailurux c4ec089a90 Added lua methods to access track data 2024-09-17 11:56:19 +10:00
cooljqln c030a4510a Merge pull request 'Introduce basic TTS support using pre-recorded voice lines' (#103) from jqln/tts into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/103
2024-09-17 00:09:10 +00: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
jacqueline 1106012bde Merge branch 'main' into jqln/tts 2024-09-13 10:17:34 +10:00
jacqueline a174d76aa1 Mount the SD card asynchronously when it becomes available
Previously we were doing it synchronously, which led to some odd looking
livelock stacktraces... we still don't have a consistent repro, but this
at least makes the stack when we mount a lot more predictable
2024-09-13 10:12:40 +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
jacqueline d8b9e65e68 Clean up some tts logging and descriptions 2024-09-12 11:44:20 +10:00
jacqueline c51709f99f Pause and unpause the current audio output in response to TTS 2024-09-12 10:44:26 +10:00
jacqueline 542ebc6531 Play TTS files in response to TTS prompts, but it's legible now
- input files are upsamples and padded to stereo before playback
 - any in-progress playback is cancelled before playing a new file
2024-09-11 12:57:04 +10:00
ailurux 1f5ce24389 Rename set_style to set_subject 2024-09-10 15:58:03 +10:00
jacqueline 50d6efada5 Use '/sd' instead of '/sdcard' for accessing the sd card
it's cleaner
2024-09-10 14:42:40 +10:00
jacqueline d0b739c66e Play basic wav files in response to tts prompts
It's currently quite limited (no stereo or sample rate conversion,
multiple messages clobber each other, only plays if music is playing),
but we're getting there!
2024-09-09 16:39:22 +10:00
jacqueline 2b1a01705d Merge branch 'main' into jqln/tts 2024-09-09 15:15:00 +10:00
jacqueline acdc9789c9 version bump 2024-09-09 10:25:56 +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
jacqueline dacf3efc45 Look for music in "/Music", with the root dir as a fallback 2024-09-06 14:53:01 +10:00
ailurux 067069bf3b Merge pull request 'Support m3u(8) files as playlists, ignoring any comment lines' (#98) from jqln/playlist-cleanip into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/98
2024-09-06 03:52:23 +00:00
jacqueline d0f70787b1 m3u and m3u8 2024-09-06 12:41:49 +10:00
jacqueline 172d31ec6d Ignore comments within playlist files
Includes a general cleanup+restructure of playlist.cpp, and fixing the
tests and benchmarks
2024-09-06 12:40:11 +10:00
jacqueline 0426dfd4f2 Support opening m3u and m3u8 files as playlists 2024-09-06 12:39:53 +10:00
jacqueline 99a3a904e4 Handle collation text that includes '\0'
This seems to be tickled by the ogg comment handling changes (possibly libtags doesn't actually handle this case?)
2024-09-03 14:36:54 +10:00
jacqueline e6921dc055 Use libogg + our own parser for ogg files
This is somewhat faster than relying on libtags to parse these, and also better handles cornercases such as tags that cross physical page boundaries.
2024-09-03 11:17:13 +10:00
jacqueline b4a2b4fb6f Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-08-29 17:21:23 +10:00
jacqueline 3d484211a5 Add reference doc regen instructions 2024-08-29 17:20:55 +10:00
ailurux 20d5de38cc Style regulatory icons so they are visible with the light theme 2024-08-29 16:08:11 +10:00
jacqueline 91eaed4b37 use snake_case consistently in lua function names 2024-08-29 15:52:34 +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
jacqueline 3421bd652c When clicking a track in the file browser, play it
Includes adding a `playback.is_playable` for working out whether or not
a particular file is able to be played
2024-08-28 15:30:53 +10:00
jacqueline af7a70450e Support adding filepaths to the track queue 2024-08-28 15:30:25 +10:00
jacquelineandcooljqln 9145722b08 Don't show n+1/n when we run out of queue 2024-08-28 04:07:21 +00:00
jacquelineandcooljqln 71aafc1711 Fix random.cpp not being built 2024-08-28 04:07:21 +00:00
jacquelineandcooljqln 32869129ff clang-format 2024-08-28 04:07:21 +00:00
jacquelineandcooljqln 9ec8d6dafc Handle the loading state whilst appending many tracks better
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-28 04:07:21 +00:00
jacqueline d3c15bf070 spello 2024-08-28 12:47:29 +10:00
jacqueline 8f4e1ece75 Some minor cleanup, docs, assertions 2024-08-28 09:45:19 +10:00
jacqueline f253d2ee75 Timeout when writing output samples throughout the audio pipeline
This allows the audio pipeline to remain responsive even when the drain
buffer has completely filled. This in turn means that you now see the
track info in the 'now playing' screen change if the current track
changes whilst you are paused.

Since I was fucking around a lot in the audio processor anyway, I also
added mono->stereo expansion so that playing mono tracks on Bluetooth no
longer destroys your ears.
2024-08-28 09:45:19 +10:00
jacqueline ef227f8c51 Move the UI task main loop info iram 2024-08-28 09:45:19 +10:00
jacqueline b1c90278ae Delete unused half readme 2024-08-28 09:45:19 +10:00
ailurux 88e44694f0 Merge pull request 'Switch output mode to headphones when plugged in' (#90) from daniel/output_mode_switch into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/90
Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
2024-08-27 12:44:29 +00: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
jacqueline 91f26afa75 Merge branch 'main' of codeberg.org:cool-tech-zone/tangara-fw 2024-08-26 13:50:39 +10:00