ROM Hack How can I inject my own audio into .bcsar files?

HelpTheWretched

Well-Known Member
Member
Joined
Feb 4, 2010
Messages
248
Trophies
0
XP
947
Country
Canada
The program I've used is called 3DS Audio Ripper, it's pretty simple. I did a quick search and didn't find a link, so I'm attaching the file for you here. A BCSar can contain several kinds of files, and sounds are typically CWAV.

You could also extract them with a hex editor - just search the BCSar file for a "CWAV" header and copy everything up until the next header.

As for injecting your own audio: It's possible, also using a hex editor, but there's a good chance that your custom CWAV will need to be exactly the same file size as the one you want to replace. That's because it seems that games/apps refer to sounds in the BCSar by their location, not by name. You'll also need a program to convert your sound files to CWAV, which can be extremely hard to find outside of Nintendo devkit software... :ph34r:
 

Attachments

  • 3DSAudioRipper.zip
    30.4 KB · Views: 901

dj505

Inexperienced Romhacker
Member
Joined
Oct 4, 2014
Messages
556
Trophies
0
Location
Most likely at the arcade
Website
www.youtube.com
XP
788
Country
Canada
The program I've used is called 3DS Audio Ripper, it's pretty simple. I did a quick search and didn't find a link, so I'm attaching the file for you here. A BCSar can contain several kinds of files, and sounds are typically CWAV.

You could also extract them with a hex editor - just search the BCSar file for a "CWAV" header and copy everything up until the next header.

As for injecting your own audio: It's possible, also using a hex editor, but there's a good chance that your custom CWAV will need to be exactly the same file size as the one you want to replace. That's because it seems that games/apps refer to sounds in the BCSar by their location, not by name. You'll also need a program to convert your sound files to CWAV, which can be extremely hard to find outside of Nintendo devkit software... :ph34r:
Thanks! This is exactly what I needed!
 

HelpTheWretched

Well-Known Member
Member
Joined
Feb 4, 2010
Messages
248
Trophies
0
XP
947
Country
Canada
If you can't find a WAV > CWAV converter, I've got enough free time to convert a couple for you... I'll just need to know the exact number of bytes of the one(s) you're replacing. ;)
 

TopCape

New Member
Newbie
Joined
Feb 15, 2021
Messages
4
Trophies
0
Age
21
XP
32
Country
Portugal
Can you please convert the original fire temple wav for me?

This tool can convert .WAV to .BCWAV (this specific version only from what I understand): It is called LoopingAudioConverter and it is in github, specifically the tag v2.3.1-rstmcpp, which is a pre-release, has this feature.

Also, I don't know your intent with wanting that converted but in case it has to do with restoring the original fire temple music, it is already done (please read NOTE part inside): It is available in gamebanana by the name Original Fire Temple Chanting (with the end of the url being /sounds/51786)

PS: I cannot post links because I just made this account
 
General chit-chat
Help Users
    Sonic Angel Knight @ Sonic Angel Knight: DUCK DODGERS :P