102 Commits

Author SHA1 Message Date
e3683a12b7 feat: update build tasks, enhance metadata handling, and improve GUI text display 2026-02-01 16:39:05 -06:00
906734a14c fix: update copyright year to 2025 in main header files
All checks were successful
Build (3DS) / build (push) Successful in 2m37s
2025-12-07 15:58:52 -06:00
36924ddfae feat: refactor album art handling, implement progress bar display, and update application version to dev63
Some checks failed
Build (3DS) / build (push) Failing after 2m6s
2025-12-07 15:39:55 -06:00
d09cf0739e feat: implement album art display functionality and update application version to dev50
Some checks failed
Build (3DS) / build (push) Failing after 1m59s
2025-12-06 23:31:45 -06:00
5d9ce1fdb9 fix: update application version to dev37 and streamline playback logging
Some checks failed
Build (3DS) / build (push) Failing after 1m58s
2025-12-06 22:44:34 -06:00
e491cddfcb GUI 2025-12-06 22:42:06 -06:00
ab9b766be3 fix: adjust console window sizes for better display
Some checks failed
Build (3DS) / build (push) Failing after 2m2s
2025-12-06 21:14:57 -06:00
285351e982 YAY
Some checks failed
Build (3DS) / build (push) Failing after 1m13s
2025-12-06 23:47:15 +00:00
Narayan
909effaaef main: fix autoplaying with directory in list (#83) 2025-10-10 12:07:35 +02:00
Mahyar Koshkouei
f8c2ede98b Merge pull request #79 from narayanx/feature/switch-song-lr
Allow switching with L/R, fix with pause/play, remove stop song
2025-08-25 14:21:49 +01:00
Narayan
02007c48eb made requested modifications: removed wrong memset, moved declarations, removed extra newlines 2025-08-23 19:06:03 -07:00
Narayan
5820223214 deleted stop code 2025-08-22 00:35:39 -07:00
Narayan
4401238766 ZL switching wasn't working fixed, also made pause/play with L+R work if R pressed first, resolving: https://github.com/deltabeard/ctrmus/issues/78 2025-08-22 00:31:02 -07:00
Narayan
8f5a55c27b got switching with L/R working upon keyup 2025-08-22 00:18:13 -07:00
Narayan
4958c5db3f modified readme and control display to reflect new controls, commented out stop code 2025-08-19 18:09:39 -07:00
Narayan
47106bd059 reword comment 2025-08-19 14:00:10 -07:00
Narayan
bd283f7f5f removed debug print and random whitespace 2025-08-19 13:51:23 -07:00
Narayan
28e3275bdc got initial impl of stack to save positions working 2025-08-19 13:47:03 -07:00
Narayan
e43a6c2d67 fixed likely typo in top screen log window height 2025-08-19 01:04:20 -07:00
Mahyar Koshkouei
6177ae83fc Merge pull request #74 from narayanx/hotfix/song-stop-crash
Removed problematic 2nd console clear when stopping song
2025-08-18 08:27:40 +01:00
Narayan
e5e2e6faa0 commented out problematic 2nd console clear when stopping song 2025-08-17 23:52:10 -07:00
Narayan
390d2cf594 fixed bug where switching songs doesn't scroll file list 2025-08-03 12:27:00 -07:00
Mahyar Koshkouei
fa723f311e play: fix segfault
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2025-08-01 00:01:35 +01:00
Mahyar Koshkouei
fb7c6166b1 play: use stack to store filename
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2025-08-01 00:01:08 +01:00
Mahyar Koshkouei
c5d2650ea7 play: do not print on watchdog thread
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2025-08-01 00:00:25 +01:00
Nicholas Lamicela
8d82a96dfa fix end of song detection 2025-01-24 19:55:24 -08:00
Nicholas Lamicela
cf455d8381 add autoplay 2025-01-24 19:34:20 -08:00
Nicholas Lamicela
83ab6c3c51 use ZL and ZR to change songs with lid closed! 2025-01-24 16:51:54 -08:00
Mahyar Koshkouei
cdf49f8dcf play: add current and total time of music
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2023-07-08 16:51:14 +01:00
Mahyar Koshkouei
0143d7ece1 build: fix ctru API change in SDMC access
Additionally updated buildtools.
Tested with Citra 3DS emulator only.

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2021-04-28 15:50:49 +01:00
Mahyar Koshkouei
ef0289bceb Refactor for testing
Added basic decoding functionality to test.

Refactored some code to stop 3DS specific code from compiling on
GNU/Linux.

Tested working by running the test executable on GNU/Linux. Vorbis
decoding has many errors detected by valgrind (but still decodes
successfully).
Opus, flac, and mp3 decoding work without errors.

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2017-08-14 23:14:45 +01:00
Mahyar Koshkouei
ed5eaba746 Add Vorbis decoder
Additionally implemented better handling of the playback stopping
procedure.

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2017-07-08 12:43:41 +01:00
Mahyar Koshkouei
c6f27ae957 Update submodules
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2017-07-07 22:59:18 +01:00
Mahyar Koshkouei
b7efc57b1a Fix error and line clear bugs
Fixed a bug whereby error messages may appear on the bottom screen.
Fixed a bug whereby some lines on the bottom screen would not be cleared
whilst browsing files, causing some file names to appear where they
shouldn't.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-22 15:53:26 +00:00
Mahyar Koshkouei
136cc59632 Remove debugging
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-20 16:27:01 +00:00
Mahyar Koshkouei
057a13f7a2 Fix directory flashing
Fixed an issue whereby the console would flash when browsing files.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-20 16:22:39 +00:00
Mahyar Koshkouei
ae4b713bf6 Add new key mappings
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-15 17:25:02 +00:00
Mahyar Koshkouei
59688aaf0e Remove error on going up directory
Removed an error that would briefly appear on the screen if the user
were to attempt to change to the above directory whilst being in the
root directory.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-15 16:53:33 +00:00
Mahyar Koshkouei
073b507118 Browse files with Left & Right
Added feature to browse a folder with Left & Right buttons to skip over
half a screens worth of files (13 files).

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-15 16:34:50 +00:00
Mahyar Koshkouei
02746ec1d0 Fix playback bug & don't stop on every file select
Fixed a bug where ctrmus would freeze after selecting an unsupported
file.
Fixed a bug whereby selecting an unsupported file would stop playback.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-15 16:03:37 +00:00
Mahyar Koshkouei
65bb01ee72 Add missing function headers
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-14 22:45:18 +00:00
Mahyar Koshkouei
295edd06f0 Fix segfault on exit
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-14 17:58:21 +00:00
Mahyar Koshkouei
b7f3a70406 Remove header order requirement and debug
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-14 17:34:48 +00:00
Mahyar Koshkouei
711864cfa9 Fix error handling
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-14 17:00:15 +00:00
Mahyar Koshkouei
984192eebe Improve error handling
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-14 17:00:15 +00:00
Mahyar Koshkouei
488a3d9357 Add pause/play display again
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-10 12:15:56 +00:00
Mahyar Koshkouei
5b433f2396 Add showControls, error handling, optimisations
Add a function to show button mappings using L + LEFT.
Added preliminary error handling that will be improved later to
determine playback issues.
Music is not stopped when an unsupported file is selected.
Some other minor modifications.

TODO:
Pause/play status does not show currently.
Obtain error status of playback thread.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-10 11:41:01 +00:00
Mahyar Koshkouei
888c4a1505 Minor fixes to improve thread safety
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-10 08:48:26 +00:00
Mahyar Koshkouei
3df3461027 Fix pausing
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-10 08:21:29 +00:00
Mahyar Koshkouei
a06e17a66a Put playback in separate thread (WIP)
Selecting a file is possible whilst music is playing.
Additionally fixes #19, an issue where the Home would not appear whilst
music is playing.

TODO:
Remove printf from playback module.
Fix pause and stop.
Display errors properly using errno.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2017-02-09 17:14:10 +00:00