Commit Graph

11 Commits

Author SHA1 Message Date
Mahyar Koshkouei
c31c872621 Use DSP instead of CSND
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-11-22 23:58:44 +00:00
Mahyar Koshkouei
c346f60f16 Add icon
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-11-21 21:44:40 +00:00
Mahyar Koshkouei
c05e4366f7 Disable 8bit WAV support
8 bit, and ADPCM wav files sound like garbage, so disabling it.
Changed directory to "MUSIC".
Minor changes to file selector.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-28 13:17:48 +01:00
Mahyar Koshkouei
fcc801e8ca Working release before Stereo support changes
Added work-around for stereo WAV files. Plays them twice as fast to
compensate for the fact the player currently only supporting monophonic
output. Stereo output will be added in the future.

WAV sampling rate, resolution, channels, etc is now automatically
detected. Note that 8bit WAV files sound horrible for some reason.

Note that PCM WAV files are supported, not compressed WAV files.

Tested working on n3DS and 3DS.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-28 11:55:37 +01:00
Mahyar Koshkouei
31ad76e541 Attempting to add Stereo
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-28 11:46:09 +01:00
Mahyar Koshkouei
b60cec86b9 Player fixes and file selector
Fixed an issue where the first part of a WAV file would not be played.
Fixed an issue where a random part of the WAV file would play after the
file had finished playing.
Fixed an issue where the audio file was not closed after it had finished
playing.
Fixed an issue whereby the current file would continue playing after
returning to the main menu.

Added basic file selector to select different WAV audio files in the
/audio/ folder.
Now using two buffers to play audio. Whilst one buffer is playing, the
other buffer is played. Buffer size set to a magic value of 1MiB.

Tested on New 3DS. Currently working with 48000Hz, 16 Bit WAV files.

TODO (in order):
Refactor duplicate code.
Automatically detect WAV sampling rate, resolution, etc.
Remove debug messages.
Add file browser.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-25 23:30:50 +01:00
Mahyar Koshkouei
69cd402df1 goto cleanup and define
Removed pointless goto.
Made use of BUFFER_SIZE define.

Untested.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-24 23:08:22 +01:00
Mahyar Koshkouei
7fe6bc50ac Remove some debug
Still a lot of debug remaining. Removed some pointless lines in the
meantime.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-24 23:03:47 +01:00
Mahyar Koshkouei
e9a618b940 Load large WAV files
Large WAV files can now be played. Tested working with 77MiB WAV files.

Known issues:
- First kilobytes of WAV file isn't played.
- Screen doesn't turn on after 3DS placed in sleep mode.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-24 23:00:32 +01:00
Mahyar Koshkouei
020ade0934 Create initial file structure
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
2016-10-24 11:52:11 +01:00
Mahyar Koshkouei
c9729ed113 Initial commit 2016-10-23 19:40:56 +01:00