[Question] How do you rip sounds from a DS Game?

Discussion in 'NDS - ROM Hacking and Translations' started by MuscleMuscleHust, Sep 26, 2016.

  1. MuscleMuscleHust
    OP

    MuscleMuscleHust Advanced Member

    Newcomer
    92
    12
    Apr 12, 2016
    United States
    Not music. just sounds.
     
  2. Mikemk

    Mikemk GBAtemp Advanced Maniac

    Member
    1,557
    555
    Mar 26, 2015
    United States
    Every game will use a different format, you have to reverse engineer it.

    Also, this is not a tutorial
     
  3. evandixon

    evandixon PMD Researcher

    Member
    1,674
    796
    May 29, 2009
    United States
    Depends on the game.
     
  4. Dr.Hacknik

    Dr.Hacknik Maniac | Dev | A Fellow (lewd) Megumin

    Member
    1,196
    973
    Mar 26, 2014
    United States
    my lewd corner
    Sounds (In most DS Games) are heavily compressed 128k Audio Files. They're in some weird Format, not sure how to Convert em', but it's easy to grab them from a .NDS or .BIN.
     
  5. MuscleMuscleHust
    OP

    MuscleMuscleHust Advanced Member

    Newcomer
    92
    12
    Apr 12, 2016
    United States
    Im using Ni no Kuni DS
     
  6. yuyuyup

    yuyuyup GBAtemp Psycho!

    Member
    3,336
    773
    Apr 30, 2006
    United States
    USA MTN timezone
  7. MuscleMuscleHust
    OP

    MuscleMuscleHust Advanced Member

    Newcomer
    92
    12
    Apr 12, 2016
    United States
  8. yuyuyup

    yuyuyup GBAtemp Psycho!

    Member
    3,336
    773
    Apr 30, 2006
    United States
    USA MTN timezone
    MikeMK UniqueGeek and Dr. Hacknick are right some games are built differently, I'll look into how to non-compatible titles at some point. But if that program works, it will put the folder of sounds in a new folder in your rom folder.
     
  9. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,511
    9,327
    Nov 21, 2005
    Most DS games use the SDAT sound format, said format containing 3 sub formats that cover the main styles of computer based music
    SSEQ (along with sbnk for the sample bank) is a midi/sequencer/tracker formats.
    SWAV Small wave files seen in sound clips
    STRM Larger wave files that contain full songs.

    There are other formats, however they are very rare (ignoring region dupes I might still be able to count games/franchises on my fingers) and I tried to document all I know of in http://gbatemp.net/threads/the-various-audio-formats-of-the-ds.305167/
    Most of the time the other formats are well known or fairly close to the hardware/wave files.

    Three main methods of ripping SDAT.
    Old methods.
    SSEQ2midi (various versions), ndssndext, crystaltile2 and so forth. Linked in various threads or just a search away. Some games will sound good, others less so. Things like crystaltile2, tinke and possibly mkds course modifier have some good stuff.

    VGMtrans.
    Able to make midi files and rip sbnk files to DLS (another sound bank format more common on the PC). This means you can make things sound pretty much like they would on the DS where the old methods above certainly have their uses but are not going to be exact.
    https://github.com/vgmtrans/vgmtrans/releases for the newer stuff, older stuff exists elsewhere and might work if this has some unexpected bugs.

    rip 2sf files with whatever, most using VGMtoolbox ( https://sourceforge.net/projects/vgmtoolbox/ and https://www.hcs64.com/mboard/forum.php?showthread=22580 . You sort of emulate the format back on PC so you will need the 2sf playback plugins to go with them and they will only work with things like foobar. http://www.zophar.net/utilities/2sf/vio2sf.html
    I am not sure how hard it is to get the extra plugins/rip kit that snakemeat and caitsith2 have for ripping 2sf files right now.

    Alternative. If you want to play them back on the DS then maybe have a look at http://gbatemp.net/threads/nds-music-player.306997/
     
    yuyuyup likes this.
  10. Kurausukun

    Kurausukun GBAtemp Regular

    Member
    215
    45
    Apr 6, 2014
    United States
    Don't use 2SF, use NCSF.
     
  11. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,511
    9,327
    Nov 21, 2005
    Probably should have mentioned that. I have never quite got the need for it and though the vio2sf stuff is not without accuracy issues, though I have not tried the newer versions which supposedly sort many of those, the ncsf stuff I saw was worse for no great gain from where I sit.

    That said it is another method and will more or less allow you to play back DS SDAT format music on a PC or something.
     
  12. Kurausukun

    Kurausukun GBAtemp Regular

    Member
    215
    45
    Apr 6, 2014
    United States
    It's a lot faster, for one thing. Accuracy is at least the same as 2sf, but I've run into one case where ncsf worked better.