Homebrew NDS Music Player

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
kazo I think I may have seen you asking for a corrupted array somewhere...

Backslashes as suggested aren't cross platform, but rather just slashes (/), also, why didn't you just read the current dir into a variable?

/* read a directory */
char cur_dir;

function read_dir() {
cur_dir = (Path.GetPathRoot(filePaths[0]) + "/data/NDS Music Player/");
}

if (!Directory.Exists( read_dir(cur_dir) )
{
doesn't exists..
}

else
{
does exist..
}

Assuming directory.exists is a custom function which will look into the given directory inside.

Of course this is pseudo C, but the "directory seek" should happen once you call read_dir();, this might not be correct at all, but I think it is a good idea..
 

coolness

PSN: Dutch_DarkLord
Banned
Joined
Jun 14, 2009
Messages
2,015
Trophies
0
Age
28
Location
Rotterdam Bitches!!
Website
dutchmw3.webs.com
XP
354
Country
Netherlands
WORKS LIKE A CHARM
biggrin.gif

somethime the menu freeze but that is no prob for me
tongue.gif

your like a God KazoWAR
tongue.gif
xd
 

Prof. 9

Well-Known Member
Member
Joined
Jun 17, 2008
Messages
324
Trophies
1
Location
The Netherlands
Website
twitter.com
XP
853
Country
Netherlands
This is very nice, I've been wanting something like this for a while.

Some issues I ran into:
- When playing a new BGM, some tracks of the old one don't stop playing until they're overwritten by the new BGM's, so the start of the new BGM sounds ugly.
- In fact, there is no way at all to stop playing something.
- Some BGMs crash at Loading WAVEARC1, the last step. One BGM that does this consistently is the very first SSEQ in The Legend of Zelda: Spirit Tracks.
- SPS Maker crashed on Professor Layton and the Unwound Future for me.
- My Pokémon Ranger 3 ROM had an "é" character in it, this caused an error when trying to load it in NDS Music Player (it showed up as Pok?mon).

EDIT: - Pressing Left/Right to navigate the file list lets me scroll right past the last entry and into black space (this doesn't crash the homebrew, though).

EDIT2: - Sonic Colours produces 10 SPSs, though they all work more or less, in SONICCOLORS 2.sps the main instrument in 2act1, 2act2, 6act1 and 6act2 fail to play.
 

KazoWAR

Well-Known Member
OP
Member
Joined
Aug 12, 2008
Messages
1,952
Trophies
1
Age
35
Location
Winter Haven
XP
2,130
Country
United States
Prof. 9 said:
This is very nice, I've been wanting something like this for a while.

Some issues I ran into:
- When playing a new BGM, some tracks of the old one don't stop playing until they're overwritten by the new BGM's, so the start of the new BGM sounds ugly.
- In fact, there is no way at all to stop playing something.
- Some BGMs crash at Loading WAVEARC1, the last step. One BGM that does this consistently is the very first SSEQ in The Legend of Zelda: Spirit Tracks.
- SPS Maker crashed on Professor Layton and the Unwound Future for me.
- My Pokémon Ranger 3 ROM had an "é" character in it, this caused an error when trying to load it in NDS Music Player (it showed up as Pok?mon).

EDIT: - Pressing Left/Right to navigate the file list lets me scroll right past the last entry and into black space (this doesn't crash the homebrew, though).

EDIT2: - Sonic Colours produces 10 SPSs, though they all work more or less, in SONICCOLORS 2.sps the main instrument in 2act1, 2act2, 6act1 and 6act2 fail to play.

thanks for the info, ill look in to it.
 

Villermen

New Member
Newbie
Joined
Sep 28, 2010
Messages
4
Trophies
0
XP
48
Country
Netherlands
Really sir, I owe you.

There's just 2 little things I encountered:
1: Sometimes when I load a sequence while playing another one, it halts at something with wavearc.
2: Theres no é's allowed for games, (like pokémon) it displays that it can't find the file.

Gr.Villermen
 

Dirbaio

Well-Known Member
Member
Joined
Sep 26, 2010
Messages
158
Trophies
0
Age
111
Location
Spain
Website
dirbaio.net
XP
108
Country
Great work, man =D
Most musics play awesome, some don't work.

You should improve the way you find the SDAT, though. It's too slow, and it doesn't detect multiple SDAT files (For example I can only play music from the minigames in the NSMB ROM because their SDAT is first in the ROM).

You could use this code from NSMB Editor DS to read the Nitro Filesystem. Or implement your own.

(Please note that my code is licensed under the GPL)
 

KazoWAR

Well-Known Member
OP
Member
Joined
Aug 12, 2008
Messages
1,952
Trophies
1
Age
35
Location
Winter Haven
XP
2,130
Country
United States
Dirbaio said:
Great work, man =D
Most musics play awesome, some don't work.

You should improve the way you find the SDAT, though. It's too slow, and it doesn't detect multiple SDAT files (For example I can only play music from the minigames in the NSMB ROM because their SDAT is first in the ROM).

You could use this code from NSMB Editor DS to read the Nitro Filesystem. Or implement your own.

(Please note that my code is licensed under the GPL)

I think you used the old version, look for v1.0 link near end of original post.
 

caitsith2

Well-Known Member
Member
Joined
Jan 16, 2004
Messages
350
Trophies
2
Age
43
Location
a secret location 93 million miles from the sun
Website
www.caitsith2.com
XP
2,476
Country
Canada
***EDIT 1***
Worked out stopping the sequence. Push X to stop sequence altogether. Also now properly free the sequence when a new sequence is played, so no more out of memory crashes, unless the seq+bnk+war is > 3.75MB or so. (limit of ram in DS).

http://dl.dropbox.com/u/20737085/NDS_Music_Player_1.0.rar

KazoWar: Feel free to base future code off of this version, or merge in the changes to your code base.

***EDIT 2***
Loop start/end implemented. Some sequences just stopped suddenly without it.
 

caitsith2

Well-Known Member
Member
Joined
Jan 16, 2004
Messages
350
Trophies
2
Age
43
Location
a secret location 93 million miles from the sun
Website
www.caitsith2.com
XP
2,476
Country
Canada
Started looking a little further into this SEQ player. As a result, less tracks now sound like crap, because per SEQ channel ADSR settings are now supported. (You will notice this quite a bit in FF4, along with a few other games.) Also hit an instance where the master volume was set to 0, and of course, the player does NOT reset it back to default on new track start. Fixed (Noticed this with Final Fantasy Fables: Chocobo Tales). Also, loop is actually implemented correctly now. (caused a few tracks to never start playing.) (Noticed this with FF4).

http://dl.dropbox.com/u/20737085/NDS_Music_Player_1.0b.rar
 

Dirbaio

Well-Known Member
Member
Joined
Sep 26, 2010
Messages
158
Trophies
0
Age
111
Location
Spain
Website
dirbaio.net
XP
108
Country
KazoWAR said:
Dirbaio said:
Great work, man =D
Most musics play awesome, some don't work.

You should improve the way you find the SDAT, though. It's too slow, and it doesn't detect multiple SDAT files (For example I can only play music from the minigames in the NSMB ROM because their SDAT is first in the ROM).

You could use this code from NSMB Editor DS to read the Nitro Filesystem. Or implement your own.

(Please note that my code is licensed under the GPL)

I think you used the old version, look for v1.0 link near end of original post.

Yes, you're right, sorry
tongue.gif

I see now the multiple SDAT issue is fixed. Cool
smile.gif


Still, I see now the thing itself is not standalone. Could you make it standalone again as in the first version?
biggrin.gif
If not, it kind of looses the point of being a DS app...
 

loco365

Well-Known Member
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
caitsith2 said:
Started looking a little further into this SEQ player. As a result, less tracks now sound like crap, because per SEQ channel ADSR settings are now supported. (You will notice this quite a bit in FF4, along with a few other games.) Also hit an instance where the master volume was set to 0, and of course, the player does NOT reset it back to default on new track start. Fixed (Noticed this with Final Fantasy Fables: Chocobo Tales). Also, loop is actually implemented correctly now. (caused a few tracks to never start playing.) (Noticed this with FF4).

http://dl.dropbox.com/u/20737085/NDS_Music_Player_1.0b.rar
I went and took a look at it. It looks good so far. I have only 2 concerns.

1. Some sounds terminate incorrectly. For the best example of this, listen to SEQ_TOWN2_D.sseq in a Pokemon Diamond or Pearl rom.
2. There is no Square support. None of the songs that use 8-bit sounds from the system itself will play correctly. The best example of this is any and all GB Sounds themes in HGSS. Not even VGMtrans has this support and if it is added to this, that would be awesome and this program would be complete in my eyes.
 

loco365

Well-Known Member
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
caitsith2 said:
Songs that use multiple Wave Archives are now playing back correctly, other than if they are using commands not yet implemented. Club House Games is a good example of a game that has SSEQ using multiple wave archives.

http://dl.dropbox.com/u/20737085/NDS_Music_Player_1.0c.rar
Yay. I'm in bed atm on my 3DS, so I'll check it out in the morning (if my computer doesn't die when I insert the SD card, that is.)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
  • K3Nv2 @ K3Nv2:
    White fries hold up
    K3Nv2 @ K3Nv2: White fries hold up