From 3059bead6b81634b1bd24c5e70a4c19023ae5189 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Thu, 5 Jan 2017 22:22:28 +0000 Subject: [PATCH] Update README and minor changes for release Signed-off-by: Mahyar Koshkouei --- README.md | 9 ++++++--- source/all.h | 2 +- source/main.c | 2 +- source/wav.c | 2 ++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6269aed..c2802f1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

A music player for the Nintendo 3DS

### Instructions -* Supported music files should go in the MUSIC folder on the root of the SD card, like SD:\MUSIC\chala.wav. +* Transfer your music files to any folder on the SD card in your 3DS. * Start the ctrmus.3dsx application in the homebrew launcher. * Use the d-pad to select the music file to play, then press A. @@ -15,12 +15,14 @@ B = Stop ### When stopped A or R = Play selected file or change directory. +B = Go up directory. + Up and down = Select file. Start = Return to Homebrew menu (Only when stopped playing). ### Features -* Plays PCM WAV, AIFF, FLAC, Opus files. +* Plays PCM WAV, AIFF, FLAC, Opus, MP3 files. * Pause and play support. * Plays music via headphones whilst system is closed. * Ability to browse directories. @@ -28,6 +30,7 @@ Start = Return to Homebrew menu (Only when stopped playing). ### Planned features * Playlist support. * Repeat and shuffle support. -* OGG, MP3 file support. +* OGG file support. * Metadata support. +* Gain support. diff --git a/source/all.h b/source/all.h index 62a8927..d960049 100644 --- a/source/all.h +++ b/source/all.h @@ -4,7 +4,7 @@ #define CHANNEL 0x08 /* Adds extra debugging text */ -#define DEBUG +//#define DEBUG /* Prints more error information */ #define err_print(err) \ diff --git a/source/main.c b/source/main.c index fb5abe1..c4988d2 100644 --- a/source/main.c +++ b/source/main.c @@ -60,7 +60,7 @@ int main(int argc, char **argv) fileMax = getNumberFiles(); consoleSelect(&topScreen); - puts("Playlist"); + puts("Log"); consoleSelect(&bottomScreen); /** diff --git a/source/wav.c b/source/wav.c index f123b98..fd4c3db 100644 --- a/source/wav.c +++ b/source/wav.c @@ -64,9 +64,11 @@ int playWav(const char *wav) (header[28]); blockalign = (header[33]<<8) + (header[32]); bitness = (header[35]<<8) + (header[34]); +#ifdef DEBUG printf("Format: %s(%d), Ch: %d, Sam: %lu, bit: %d, BR: %lu, BA: %lu\n", format == 1 ? "PCM" : "Other", format, channels, sample, bitness, byterate, blockalign); +#endif if(channels > 2) {