63 Commits

Author SHA1 Message Date
Tal
1884d2ebed chore: even more error handling improvements 2025-08-06 15:34:44 +02:00
Tal
f6bea9f048 feat: experimental support for other file types
chore: migrate to rodio v0.21.1
feat: add a currently nonfunctional source argument to the scrape
command

well, this is an important commit for anyone who has some interest in
the workings of lowfi, so strap in.

rodio finally updated cpal, so that ugly unsafe bit of code to implement
send is no longer necessary since cpal did it themselves (a year ago)
they also removed output stream handles and some other things which
nobody really used anyway.

next, the other file types is literally not even code, just adding a
feature flag which enables the default rodio feature flags. i do feel a
bit silly for thinking it'd be super difficult, so thanks rodio.

lastly, the source flag is for a possible switch to the chillhop
tracklist. anything embedded into lowfi should be generated with an open
source script, hence if lowfi does switch to chillhop, it'll need to be
selectable.
2025-08-05 21:24:04 +02:00
Tal
0b15ce8e1b chore: give better names to track structs 2025-07-02 19:46:17 +02:00
Tal
6fadfe6304 chore: restructure and clean up 2025-07-02 19:36:53 +02:00
talwat
b6a81c9634 chore: refactor track error to use thiserror 2025-07-02 18:32:38 +02:00
talwat
1af976ad77 fix: begin work of improving error handling 2025-06-04 22:16:52 +02:00
talwat
2ccf073646 feat: add fps flag 2025-05-05 13:16:01 +02:00
talwat
7cdd2e7694 feat: add star indicator for bookmarking 2025-04-23 14:14:49 +02:00
talwat
d24c6b1a74 feat: implement basic bookmarking, still wip 2025-04-22 11:48:50 +02:00
talwat
5db5146b8e feat: add option for fixed mpris name 2025-03-17 16:39:19 +01:00
talwat
34577efe8f feat: add buffer size option 2025-03-17 16:32:06 +01:00
talwat
adcb20f2d0 fix: reform errors for track fetching 2025-03-12 14:21:37 +01:00
talwat
27fc505830 feat(internal): add extra flexibility to windows 2025-03-12 14:21:37 +01:00
talwat
84f386e0eb feat: add experimental local file loading in track lists 2025-02-28 19:07:22 +01:00
talwat
ece88de1ae fix: tackle lots of clippy lints, along with removing outputstream from player struct 2025-02-21 21:44:32 +01:00
talwat
503b4fe9db docs(internal): add internal documentation for ui::flash_audio() 2025-02-19 23:48:31 +02:00
danielwerg
67a4c4f0ea
fix: show volume bar (mpris) (#59) 2025-02-19 23:43:14 +02:00
talwat
2b20bf7709 chore: specify album in MPRIS metadata, still untested 2025-02-18 22:09:16 +02:00
Beune
1480b62be9
feat: add mpv and vim-like keybindings (#57) 2025-02-17 20:49:06 +01:00
Tal
923ac05cf8 add functionality for custom track names 2025-02-15 12:51:53 +01:00
Tal
6a6823d078 feat: readd padding to borderless mode 2025-02-11 19:20:44 +01:00
Tal
b87a525c74 feat: introduce -n for no borders 2025-02-09 15:38:33 +01:00
Tal
5057721913 fix: use unicode-segmentation to fix issues with unicode track names 2025-01-02 19:20:31 +01:00
Tal
a39d903c68 feat: convert width to an arbitrary unit to avoid uneven setups 2024-11-26 10:55:15 +01:00
Tobias Clasen
a6f3eb034d
feat: allow variable width
* Added the feature described in issue #44

* Update components.rs with a comment
2024-11-26 10:40:57 +01:00
Tal
56b03290d0 feat: make MPRIS bus suffixes unique 2024-10-27 14:17:30 +01:00
Tal
e7ac0c9214 docs: add more internal docs for mpris 2024-10-24 19:04:14 +02:00
Tal
fe9429bfb3 chore: reintroduce clippy & fix a lot of errors 2024-10-18 23:37:45 +02:00
talwat
30af38a63a fix: ignore release key events 2024-10-17 21:33:23 +02:00
talwat
a64b10e20c fix: fix flickering on windows & abstract window drawing 2024-10-17 21:30:06 +02:00
talwat
ddc572b405 fix: refine loading indicator 2024-10-16 12:54:03 +02:00
talwat
6f9dab6aa8 docs: again go into more depth in internal documentation 2024-10-15 23:46:10 +02:00
Tal
301b831737 docs: improve internal documentation 2024-10-15 15:06:52 +02:00
Tal
ac9b196675 chore: bump version 2024-10-15 14:41:01 +02:00
Tal
10a3263c82 fix: use CString instead of new rust syntax to fix older versions of rust throwing compilation errors 2024-10-15 14:28:26 +02:00
Tal
543aeee78c
feat: add custom sources (#21)
* feat: initial work on decoupling embedded list file & the rest of the app

* chore: rename tracks.txt to lofigirl.txt

* fix: make base optional

* feat: partially revert previous commit

* feat: fix loading tracks with explicit url

* fix: include list in main player struct

* chore: reduce timeout

* chore: remove unused import

* fix: rename InitialProperties to PersistentVolume

* feat: move persistent volume init to player init function

* feat: add micropop.txt as an example of a custom tracklist

* docs: add note about mp3

* docs: move format of lists to list struct docs

* docs: document custom track lists

* fix: fix silly spelling error

* docs: update formatting

* docs: fix sample formatting

* docs: add missing sample track

* fix: fix ui when track name has special characters

* fix: use proper char counting on subject, not word

* fix: use unicode-segmentation to finally fix handling special characters

* fix: precompute track len

* fix: switch to using the unicode-width crate

* style: split off list into it's own module

* fix: move logic to read a list from the fs into the list module
2024-10-15 14:15:51 +02:00
Teemu Viikeri
b2c225256f
feat: add dynamic handling of play/pause state in bottom controls bar (#31) 2024-10-15 13:36:45 +02:00
danielwerg
8d9d003dc9
feat: add play and pause messages (#24) 2024-10-12 10:54:32 +02:00
Tal
cc73fa5a37 feat: also clamp volume in mpris 2024-10-07 21:24:22 +02:00
Tal
724afd6fa7 fix: remove accidental debug display 2024-10-07 17:11:09 +02:00
Tal
6f7c2dbcba chore: improve readability of code relating to downloader thread 2024-10-07 17:09:22 +02:00
Tal
901bf0e871
feat: support for mpris (#14)
* feat: initial support for mpris

* feat: overhaul app flow, making audio server control main thread instead of the ui thread

* fix: remove useless extra thread

* fix: last touches

* fix: call interface with minimalist flag

* fix: fix oversight when silencing alsa
2024-10-06 17:46:47 +02:00
talwat
baa2e095d9 feat: add minimalist flag 2024-10-06 09:36:06 +02:00
talwat
0ef844a3f2 feat: improve slightly media key support 2024-10-04 00:09:39 +02:00
Tal
706ba97428 feat: add wip support for media keys 2024-10-03 23:19:00 +02:00
Tal
b85d8c0be2 feat: improve UI flexibility if resizing is implemented 2024-10-03 18:05:22 +02:00
Samsu
49e7191369
feat: fine grained volume adjustment (#8) 2024-10-03 14:27:27 +02:00
talwat
a414c5e9f4 chore: move ui components into their own file 2024-10-03 08:40:10 +02:00
Tal
c2baa53ded fix: finally fix the alsa warnings with libc's freopen 2024-10-02 22:56:01 +02:00
Tal
5d2e6c6d23 fix: switch to using stdout 2024-10-02 22:07:02 +02:00