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>
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>
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>
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>
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>
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>
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>
Additionally increased the maximum size of the directory path to display
by a whopping 3 characters.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Created generic playback handler, first with Opus support. Other
decoders to follow. This is to remove duplicated code.
3DSX tested working with citra and N3DS.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Fixed an issue whereby after exiting the ctrmus CIA application, the
user could not load another application.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Only the first page of files can be browsed in the directory though.
The top screen is where the playlist will be displayed, but is currently
used for music playback info.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Fixed a major bug whereby file names were being retrieved from a cleared
pointer (issue 9).
Tested working on n3DS.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Fixed an issue where the "Paused" text would still be displayed after
un-pausing a WAV file.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Opus files can now be played.
Fixed an issue where monophonic tracks were being played twice as slow.
Opus decodes to stereo always.
Additionally added ability to loop the file selector from 1 to the last
file when pressing down and vice versa.
There are known issues. Please see the issues page for them.
Tested working with:
196kbit Stereo Opus File
32kbit Stereo Opus File
96kbit Mono Opus File
8kbit Stereo Opus File
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>