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>
It's not as good as Opus. MP3 was added because it's popular, and Flac
provides a good lossless codec.
Vorbis can be added at a later date.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Using mpg123_outblock doesn't work correctly. Also assigning variables
to different types.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Fixed an issue whereby the 3DS would crash when attempting to exit the
3DSX version of ctrmus.
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 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>
Fixed a bug where the CIA icon was blank.
Fixed automatic version number generation for the CIA.
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>
Additionally made very minor changes to fix 80 character line limit in
some places.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Fixed an issue whereby the size of the buffer was incorrect causing
malformed audio output when playing a flac music file.
Additionally removed some debugging code and old chaff.
Tested working with stereo and mono 16 bit flac files.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
Additionally changed compiler optimisation back to O3 and temporarily
use only a single buffer with flac decoding.
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>