Hacking wav2btsnd - simple tool to create .btsnd files

cathor

Well-Known Member
Newcomer
Joined
Oct 15, 2016
Messages
78
Trophies
0
Age
37
XP
1,119
Country
Thanks , just what i was looking for!

Trying to run this from osx terimnal. What are the arguments for input/output file? any other options/flags available?

tried to run
java -jar wav2btsnd.jar myfile.wav

myfile.wav is 3 sec / 48000khz / 16bit stereo

This is what i get
"You need to provide a 48000khz 16bit steroe .wav as input"

Cheers,
 

BDS

Well-Known Member
Member
Joined
Jan 7, 2016
Messages
179
Trophies
0
XP
297
Country
France
For anyone wondering about btsnd's and loops, afaik they all loop from their loop start value to the end of the stream. The loop start value is the 32bit uint (in big endian) at 0x4 at the beginning of a btsnd.
If you don't want a loop, you just need to loop "silence".

To find the start value you want to set with your wav, either act as if you were about to make a brstm with BrawlBox (for example, if you have another free software that can do custom loops, you're free to share your knowledge) and get the number of samples for the start value or (much more "painful") try to be as precise as possible in some audio editing software (ex: Audacity) when finding the start point and multiply that value (in seconds) by 48000 (the sample rate). Then convert your number of frames in hex, for example with Windows'calc in programmer mode, open your btsnd with a hex editor such as HxD, select the block from 0x4 to 0x7 and (if your value has less than 8 chars, complete it with 0's at the beginning, ex: 296575=>0x4867f=>0x00048674) enter your start point value in hex.
 

galneon

Well-Known Member
Member
Joined
Jul 9, 2006
Messages
254
Trophies
1
XP
536
Country
United States
Thanks , just what i was looking for!

Trying to run this from osx terimnal. What are the arguments for input/output file? any other options/flags available?

tried to run
java -jar wav2btsnd.jar myfile.wav

myfile.wav is 3 sec / 48000khz / 16bit stereo

This is what i get
"You need to provide a 48000khz 16bit steroe .wav as input"

Cheers,

Same problem, only in Windows. File is definitely right, but I get the same error. Tried your syntax and [source] [destination].
 

galneon

Well-Known Member
Member
Joined
Jul 9, 2006
Messages
254
Trophies
1
XP
536
Country
United States
That worked. Thanks!

Edit: Here's my placeholder (dead air) boot sound if anyone wants it.

It can be useful for your Haxchi launcher, or shortcuts to homebrew apps in sigpatched mode. How useful, I don't know--does the absence of a boot sound prevent an application from launching? Beats me, but if an application already has a boot sound, you can replace it with this.
 
Last edited by galneon,

AboodXD

I hack NSMB games, and other shiz.
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates

JohnathanMonkey

Well-Known Member
Member
Joined
Apr 26, 2013
Messages
633
Trophies
1
Age
36
XP
744
Country
United States
yeah its not a compatible wav(i might look into adding support) but for now just run it through audacity(open the wav and then re-export)

When we export this using audacity, what exactly do we need to export this as? I click export, but there doesn't seem to be an option for a Riff wav using audacity. Please see the attached images. I think I am just missing something, but when I replace the bootSound.btsnd, it just plays the original sound like I never replaced it at all.
Capture.PNG

Untitled.png

Here is the WAV file:
Code:
https://mega.nz/#!5wJWiTaY!0fHIdbN0ik43dMxqUecBUWLPPX5Ne5j8PuiA_tkLdNg
 
Last edited by JohnathanMonkey,
D

Deleted User

Guest
When we export this using audacity, what exactly do we need to export this as? I click export, but there doesn't seem to be an option for a Riff wav using audacity. Please see the attached images. I think I am just missing something, but when I replace the bootSound.btsnd, it just plays the original sound like I never replaced it at all.


Here is the WAV file:
Code:
https://mega.nz/#!5wJWiTaY!0fHIdbN0ik43dMxqUecBUWLPPX5Ne5j8PuiA_tkLdNg
Audacity outputs RIFF WAV files by default. You just need to make sure that at the bottom of the screen, you select 48000Hz (the default selection is 44100Hz), then click File -> Export Audio and make sure that WAV is selected as the file format. On the next screen, you will be asked to add metadata to the file, ensure that all these boxes are blank.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
    +2
  • Veho @ Veho:
    California has already banned those additives BTW.
    +2
  • Veho @ Veho:
    Psi has been banned in the state of California.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I am the cancer!!! lol
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy got arcade games on the Pi working lol
  • Veho @ Veho:
    Cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Now to spend 6 months deleting all the garbage lol
  • Psionic Roshambo @ Psionic Roshambo:
    Mame should be two sets one for preservation of everything and one set for people who just want to play and enjoy the old old ganes
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Shouldn't preservation be legal tho?
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I always see this dude's shorts, he sounds pretty annoying.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Preservation yeah it absolutely should be legal
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Believe Japan was going to make it legal at some point, according to a Kotaku story.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I swear like 99% of arcade games wouldn't even exist these days outside of MAME the arcade machines are old and busted very few ever saw any sort of home conversion
  • Psionic Roshambo @ Psionic Roshambo:
    We get 37 versions of Super Mario Bros but 0 of Beast Busters
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, There's a lot of obscure Japanese arcade titles that are either lost to time or dumped.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's so unfair, maybe AI can save us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I mean if a company could use AI to do the work of a home conversion for essentially free why not? The rights for some games are completely lost though
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, AI is taking our jobs!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Just tried the Master System version.... Ugghh
    Psionic Roshambo @ Psionic Roshambo: Just tried the Master System version.... Ugghh