Jump to content


  • Please log in to reply

NDS Music Player

(Go to first unread post)
KazoWAR Post #31 Posted 04 September 2011 - 08:25 PM

    GBAtemp Advance Fan

  • PipPipPipPipPip

  • Group: Members
  • Posts: 783
  • Member No.: 133,086
  • Joined: 12-August 08
  • Location: Eloise

  •  

QUOTE(coolness @ Sep 4 2011, 02:50 PM) <{POST_SNAPBACK}>
cannot run sps maker via linux ubuntu
while using wine is there another option for this?


I am sorry, the program is written in C#. If it is not working in wine there might be nothing you can do.




coolness Post #32 Posted 04 September 2011 - 08:27 PM

    PSN: Dutch_DarkLord


  • Group: Banned!
  • Posts: 2,018
  • Member No.: 183,283
  • Joined: 14-June 09
  • Location: Rotterdam Bitches!!

  •  

QUOTE(KazoWAR @ Sep 4 2011, 07:25 PM) <{POST_SNAPBACK}>
QUOTE(coolness @ Sep 4 2011, 02:50 PM) <{POST_SNAPBACK}>
cannot run sps maker via linux ubuntu
while using wine is there another option for this?


I am sorry, the program is written in C#. If it is not working in wine there might be nothing you can do.


ah too bad i while try my luck at school tomorrow, maybe i can run it there


2-bias Post #33 Posted 05 September 2011 - 12:11 AM

    GBAtemp Regular

  • PipPipPip

  • Group: Members
  • Posts: 133
  • Member No.: 190,114
  • Joined: 30-July 09
  • Location: Germany

  •  

Woah, when i read the title of this thread i thought this would be some lame "What's the best Player for DS?" thread and i totally ignored it. But today i though "why is this a 3 pages thread now?" and i give it a look.

And now i must say this is an awesome piece of work and i'm glad that i looked into this thread. Keep up yaynds.gif

Edit: Oh and can you add special chars? Like the é in Pokémon or the german chars ä,Ä,ö,Ö,ü,Ü,ß.

Edited by 2-bias, 05 September 2011 - 12:16 AM.


avenir Post #34 Posted 05 September 2011 - 06:36 AM

    GBAtemp Fan

  • PipPipPipPip

  • Group: Members
  • Posts: 305
  • Member No.: 269,403
  • Joined: 08-December 10

  •  

Argh... anyone doesn't comment to my extlink version...

QUOTE(coolness @ Sep 5 2011, 04:27 AM) <{POST_SNAPBACK}>
QUOTE(KazoWAR @ Sep 4 2011, 07:25 PM) <{POST_SNAPBACK}>
QUOTE(coolness @ Sep 4 2011, 02:50 PM) <{POST_SNAPBACK}>
cannot run sps maker via linux ubuntu
while using wine is there another option for this?


I am sorry, the program is written in C#. If it is not working in wine there might be nothing you can do.


ah too bad i while try my luck at school tomorrow, maybe i can run it there

KazoWAR, you shouldn't use
CODE
if (!Directory.Exists(Path.GetPathRoot(filePaths[0]) + "data\\NDS Music Player\\"))

but use
CODE
if (!Directory.Exists(Path.GetPathRoot(filePaths[0]) + "data/NDS Music Player/"))

instead.

Also I'm analyzing SPS format (lol) so I hope my sdatexpand will be able to output it.

#And yes, as I expected, your SDAT handling is very awful. You don't read NitroFS table but read the whole file every 4 bytes, which is too slow. And multiple sdats games cannot be parsed correctly (such as Monster Racers)

QUOTE(2-bias @ Sep 5 2011, 08:11 AM) <{POST_SNAPBACK}>
Edit: Oh and can you add special chars? Like the é in Pokémon or the german chars ä,Ä,ö,Ö,ü,Ü,ß.

Perhaps MoonShell + nms.NitroMusicPlayer.nds combo will meet.

[edit] Already found several bugs in SPS Maker form1.cs, which occurs segmentation fault with corrupted sdats.

Edited by avenir, 05 September 2011 - 07:16 AM.


Omega_2 Post #35 Posted 05 September 2011 - 08:07 AM

    GBAtemp Advance Fan

  • PipPipPipPipPip

  • Group: Members
  • Posts: 674
  • Member No.: 164,803
  • Joined: 15-March 09

  •  

Dude, that front page has HAD you listed as KozoWAR, lol.
Also, I'm gonna get this even if it takes me all night(on dialup ohnoes.png)

EDIT: Nvm, AW fixed it XD

EDIT 2: I am happy now. I don't need to lug around my .2sf mp3's now XD
Btw, doing a DS reset when it runs out of memory forcibly turns it off(normal?), but it appears to do nothing to harm the unit(might look into this when I can find my old ds phat, since it lacks touch capability and is therefore expendable.

Edited by Omega_2, 05 September 2011 - 08:41 AM.


Mbmax Post #36 Posted 05 September 2011 - 08:54 AM

    Homebrew addicted


  • Group: Members
  • Posts: 2,227
  • Member No.: 53,260
  • Joined: 07-November 06

  •  

Avenir, i really don't know why you get ignored in this thread. I always appreciated every single project you made and any help you provided was efficient.


I will test you extlink version when i get spare time. wink.gif


drake7707 Post #37 Posted 05 September 2011 - 09:02 AM

    Member

  • Pip

  • Group: Newcomers
  • Posts: 33
  • Member No.: 36,616
  • Joined: 12-February 06

  •  

QUOTE
if (!Directory.Exists(Path.GetPathRoot(filePaths[0]) + "data/NDS Music Player/"))


No you should use

CODE
string path = Path.Combine(Path.GetPathRoot(filePaths[0]), "data", "NDS Music Player");
if(!Directory.Exists)
{

}

That way it will always work regardless of the platform you're running .NET on



2-bias Post #38 Posted 05 September 2011 - 10:24 AM

    GBAtemp Regular

  • PipPipPip

  • Group: Members
  • Posts: 133
  • Member No.: 190,114
  • Joined: 30-July 09
  • Location: Germany

  •  

QUOTE(avenir @ Sep 5 2011, 07:36 AM) <{POST_SNAPBACK}>
Argh... anyone doesn't comment to my extlink version...

QUOTE(2-bias @ Sep 5 2011, 08:11 AM) <{POST_SNAPBACK}>
Edit: Oh and can you add special chars? Like the é in Pokémon or the german chars ä,Ä,ö,Ö,ü,Ü,ß.

Perhaps MoonShell + nms.NitroMusicPlayer.nds combo will meet.



I'll give it a try later but i think i will fail with that comandline stuff and doing it for all files doesn't sound good too.
I am a huge fan of extlink stuff because it works with BagPlug on my DSTwo too and a combination of your tools would be great. So that i can select a game in BagPlug and choose between starting it with EOS or open it with the Player.

Edited by 2-bias, 05 September 2011 - 10:25 AM.


KazoWAR Post #39 Posted 05 September 2011 - 10:38 AM

    GBAtemp Advance Fan

  • PipPipPipPipPip

  • Group: Members
  • Posts: 783
  • Member No.: 133,086
  • Joined: 12-August 08
  • Location: Eloise

  •  

QUOTE(avenir @ Sep 5 2011, 01:36 AM) <{POST_SNAPBACK}>
Also I'm analyzing SPS format (lol) so I hope my sdatexpand will be able to output it.


It is simple. First 4 bytes is SSEQCount, next 4 is offset of the name entries, next 4 is the offset of the file offsets/size. after that is the char count for the nds path then the string. after that is a list of all the SSEQ names, where it is char count then string. lastly is the file offsets/size. it is 4byte offset, 4byte size for SSEQ, BANK, WAVEARC1, WAVEARC2, WAVEARC3, WAVEARC4.

QUOTE(avenir @ Sep 5 2011, 01:36 AM) <{POST_SNAPBACK}>
#And yes, as I expected, your SDAT handling is very awful. You don't read NitroFS table but read the whole file every 4 bytes, which is too slow. And multiple sdats games cannot be parsed correctly (such as Monster Racers)


I am still unable to figure out how to find a SDAT file in the FNT and then find its offset in the FAT, so instead I read the FAT and test the first 4 bytes in the file and look for "SDAT". It is not that slow, it sounded like you where saying I read the entire NDS file looking for "SDAT". it also supports multiple SDATs. Granted I was only able to test it out on games I have, so there might be problems with some games I could not test myself.

QUOTE(avenir @ Sep 5 2011, 01:36 AM) <{POST_SNAPBACK}>
Already found several bugs in SPS Maker form1.cs, which occurs segmentation fault with corrupted sdats.


I am not sure what you are saying here. So there is some kind of error when you use a corrupted sdat? then try not to use a corrupted sdat.



Fishaman P Post #40 Posted 05 September 2011 - 02:45 PM

    Author of 1,000 Ask GBAtemp answers


  • Group: Members
  • Posts: 1,670
  • Member No.: 239,566
  • Joined: 02-January 10
  • Location: My Basement

  •  

The front page topic mistakenly called this an SEEQ player.

But anyway, great to see it's being worked on!


Coto Post #41 Posted 05 September 2011 - 03:26 PM

    GBAtemp Maniac


  • Group: Members
  • Posts: 1,411
  • Member No.: 255,070
  • Joined: 04-June 10
  • Location: C# @ wii..

  •  

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..


machomuu Post #42 Posted 05 September 2011 - 03:58 PM

    R.I.P Silver Forest


  • Group: Members
  • Posts: 7,709
  • Member No.: 196,577
  • Joined: 04-September 09
  • Location: The Courtroom

  •  

Wow, this is pretty awesome looking, I'll try it out.


skroooagh Post #43 Posted 05 September 2011 - 04:37 PM

    GBAtemp Regular

  • PipPipPip

  • Group: Members
  • Posts: 120
  • Member No.: 108,578
  • Joined: 04-November 07

  •  

is there a list of games that use this audio format anywhere?


coolness Post #44 Posted 05 September 2011 - 04:59 PM

    PSN: Dutch_DarkLord


  • Group: Banned!
  • Posts: 2,018
  • Member No.: 183,283
  • Joined: 14-June 09
  • Location: Rotterdam Bitches!!

  •  

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


Haloman800 Post #45 Posted 05 September 2011 - 05:35 PM

    GBAtemp Advance Fan

  • PipPipPipPipPip

  • Group: Members
  • Posts: 578
  • Member No.: 235,972
  • Joined: 18-December 09

  •  

This sounds awesome, I've got to check this out.

Good work OP! I appreciate your efforts.







Users browsing this topic

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users