3DS .CWAV Dumper

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by loco365, Jan 31, 2014.

  1. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    Download V0.5 Here!

    So I've been working on a tool after doing a small amount of research. This tool, as you guessed, dumps 3DS audio files. What's cool, is that if you have the ability to dump your RAM, you can dump these audio files.

    Now, it dumps in the original binary formats. Want proof that this application works? I managed to dump the following audio clip with it:

    Surprise 1: Click here and listen for a surprise!!!
    Surprise 2: Click here.

    You can use RAM dumps, or anything that you can rip audio data out of (In the future, that could even be from Roms and decrypted firmware).


    To use the application, you will need a few things:
    1. The app (Duh)
    2. A RAM dump (You'll need an exploited 3DS for this. If you have more than one, you might get additional audio that another dump may not have. Try running a game for a minute or two prior to dumping.) Use this application to dump the appropriate ram: http://gbatemp.net/threads/homebrew-development.360646/page-19#post-4908000
    3. Winamp/Foobar2000 and the vgmstream plugin (This is optional, however, if you want to test the streams you've dumped, you'll need this)


    Changelog:
    0.5: Added file streaming support to properly support files 1GB and larger, minor main form changes.
    0.4a: Fixed a few more formats. Some endianness wasn't implemented properly. Oops.
    0.4: Added CSEQ support, fixed a bug in SSEQ reading, and added folders for each extracted filetype.
    0.3b: Fixed a major error when the program read the wrong offset for filesize and dumped very small files. BE SURE TO UPDATE TO THIS VERSION!
    0.3a: Forgot to switch up a few flags and and whatnot. Oops.
    0.3: Program optimizations, added more file formats for ripping.
    0.2: Added file scanning, and made the overall program a bit better, easier, and faster to use. Includes .CWAV and .CSAR ripping support.
    0.1: Initial release.

    Supported dump formats are:
    -CWAV (CTR Waves)
    -CSAR (CTR Sound Archives)
    -SSEQ (DS Sound Sequence)
    -CSTM (CTR Stream)
    -CSEQ (CTR Sequence)

    This program is still in beta (It's getting there though!!), so don't be surprised if it crashes somehow. It's a great program, but it is still a little rough around the edges.

    Credits where they are due:
    Ris312 for the original CWAV file format specification thread that I referenced from
    Jambo51 for giving me a snippet of code he adapted that fixed any and all scanning bugs
     
    hurrz, TheVinAnator, Pluupy and 10 others like this.


  2. kyogre123

    kyogre123 Mexican Pride

    Member
    2,919
    1,261
    Sep 23, 2013
    Mexico
    Wow Team Fail, this is really cool. Kudos to you.

    By the way, is that noise at the end part of the original file or is it an error in the dumping process?
     
  3. phanteon

    phanteon GBAtemp Fan

    Member
    457
    154
    Nov 4, 2013
    United States
    well done!
     
  4. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    That one was a manual rip, which is an error in my manual dump on my part. I tested another copy of that sound when I finished debugging this app, and there is no noise in it.
     
  5. Vengenceonu

    Vengenceonu Revenge is beneath me but accidents do happen.

    Member
    2,204
    1,933
    Jun 20, 2013
    United States
    The C Standard Library
    Upload it to filetrip's 3ds section
     
  6. xXMortalKombatXx

    xXMortalKombatXx Advanced Member

    Newcomer
    69
    11
    Apr 14, 2012
    Brazil
    Nice, now that's one step forward for me to get those sweet sounds out of my 3ds, specially the wet fap click sound that's played when you move a channel

    @edit: or i could just have recorded it with my microphone Lol
     
  7. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    That must be quite the sound. :creep:
     
  8. Huntereb

    Huntereb GBAtemp Addict

    Member
    2,748
    949
    Sep 1, 2013
    United States
    Does this mean we can finally dump the pure soundtracks of games like Mario Kart 7, without engine noises? :D
     
  9. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    From what I'm told, gametime Ram can't be dumped yet, but once it's possible, and the game does use those streamed formats, then yes, you can.
     
  10. Saturosias

    Saturosias Sakura-sō Resident

    Member
    594
    290
    Dec 27, 2010
    United States
    The sound files are copyrighted material, and filetrip doesn't host that... correct?
     
  11. Huntereb

    Huntereb GBAtemp Addict

    Member
    2,748
    949
    Sep 1, 2013
    United States
    D'aw, at least it'll come soon... I can't wait till we can just open up .3DS files like .ZIP files (Like we can with Wii ISO's).
     
  12. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    I think he means the application. I do intend to do that as well.
     
    Vengenceonu likes this.
  13. Vengenceonu

    Vengenceonu Revenge is beneath me but accidents do happen.

    Member
    2,204
    1,933
    Jun 20, 2013
    United States
    The C Standard Library
    yea thats what i meant.
     
  14. loco365
    OP

    loco365 GBAtemp Guru

    Member
    5,458
    2,674
    Sep 1, 2010
    I couldn't upload it to filetrip, so I uploaded it to dropbox for now (The bit.ly link is for stat collection). Take a peek with the program, and I've also included instructions in the OP on how to use the app. Hope you all enjoy!
     
  15. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,370
    9,174
    Nov 21, 2005
    Have you run it against the sound files in the pyramids 3d demo?

    I see several cwav strings, along with "strm" (not sure if it is the same as the SDAT one), in the bcsar file. Bonus is it has some nice xml files and the like which could be good to look at.
     
  16. DinohScene

    DinohScene Capture the Dino

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,843
    12,301
    Oct 11, 2011
    Antarctica
    В небо
    Sweet!
    Game OST ripping <3

    Cheers Team!
    This is the kind of stuff I can enjoy meself with for hours!
     
  17. IronClouds

    IronClouds GBAtemp's Pokébro

    Member
    1,019
    460
    May 8, 2010
    United States
  18. Pong20302000

    Pong20302000 making notes on everything

    Member
    8,076
    1,932
    Sep 8, 2009
    One's inner self
    well long as there is no nintendo code actually in this dumper you should be fine to upload to filetrip
    but if there is links to it arnt even allowed on GBATemp

    nice tool tho :D
     
  19. Coto

    Coto GBAtemp Addict

    Member
    2,353
    403
    Jun 4, 2010
    Chile
    afaik strm are index+instrument soundfiles. which have a proper header, sound frequency, wavelength (a sine function gets the audio frames), and such
     
  20. DinohScene

    DinohScene Capture the Dino

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    15,843
    12,301
    Oct 11, 2011
    Antarctica
    В небо
    IronClouds likes this.