ROM Hack [Release] Custom Theme Cwavs

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
As its name suggests (?), the function of this simple program is to create a cwav data file from one or several sounds in .cwav/.bcwav format and then import it to a custom theme with YATA (Thanks to Reisyukaku for his great tool!)

Depending on theme mode, each file can contain up to 6 different sounds and 8 in the case of Flipbooks modes. For now, to convert wav files to cwav/bcwav is necessary a tool from Nintendo SDK that can be found on net... this is not a conversion tool, sorry :wink:

The program is still in beta, it's possible that some sounds files aren't compatible/not work or emunand crash after apply a theme, so I recommend have an emunand backup ready just in case, though with extdata theme folder (EUR "000002ce", USA "000002cd", JPN "000002cc") is enough.

NIIZZsb.png



Custom Theme with Cwavs:



Forgive my rudimentary english, I hope this be useful to someone :lol:

Source code: https://github.com/Xextil/CustomCwavs

Note: Origin WAV file format before convert to bcwav/cwav should be (Otherwise can be not work) :

PCM unsigned 8-bit
Sampling rate: 8000 hz
Audio channels: mono


Changelog

- v0.4 Fixed errors
- v0.3 Added open cwav data file exported from a theme and extract cwavs/convert to Wav option.
- v0.2 Fixed errors
- v0.1 Initial version
 

Attachments

  • CustomCwavs_v04.rar
    399.9 KB · Views: 3,171

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
Updated to 0.2 to fix some errors.

And after some tests, I realize that stereo sounds or sounds with sample rate larger than 16000 Hz could case another sounds not work, so before convert the wav to bcwav, it should be adjusted.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,294
Trophies
3
Age
35
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,214
Country
United States
I've tried using 3DS .Cwav Dumper . But it fails with the dumped CWAV Bin from an existing theme that already uses them. It outputs BCWAV files like it should but the resulting WAV files I get from 3DS Explorer are silent files with no sound and that's the only program I know of that can convert BCWAV to WAV files.

I get errors in your program when I attempt to import the bcwav files it exported. I can't really use this for anything because I have no way of converting WAVs into CWAVs and my attempts to get existing CWAVs have failed. :(
 

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
I've tried using 3DS .Cwav Dumper . But it fails with the dumped CWAV Bin from an existing theme that already uses them. It outputs BCWAV files like it should but the resulting WAV files I get from 3DS Explorer are silent files with no sound and that's the only program I know of that can convert BCWAV to WAV files.

I get errors in your program when I attempt to import the bcwav files it exported. I can't really use this for anything because I have no way of converting WAVs into CWAVs and my attempts to get existing CWAVs have failed. :(

Are you using version 0.2? I test a lot of bcwavs and all of them works well.

To convert bcwav to wav I use the test.exe file that are inside the .rar. With command prompt on the same folder, type "test -o example.wav example.bcwav". If you can play the wav and the program still give you an error, please send me the bcwav file and I take a look at it.
 

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
Updated to 0.3. Added open cwav data file exported from a theme and extract cwavs/convert to Wav option.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,294
Trophies
3
Age
35
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,214
Country
United States
Ok did manage to make my own wav files and converted them to cwav. I use your program to build the CWAVs.bin file matching the screen types used by the them I put them in. But the end result is a partially bricked home menu. The moment I do something that makes it attempt to play a sound, the 3DS freezes. I can get out of this by hitting the home menu theme options on the top left corner of the bottom screen as soon as the home menu boots up. It will freeze if I do anything else.

What rate should the wav files be at I have yet to extract bcwavs from an existing theme to get a read on what sampling rate/frequency I should be using.

EDIT: Ok managed to get your updated program. For whatever reason you changed the name of the exe from the first release or what ever version I had at first and was accidentally running the wrong one. I see the options to extract from cwavs.bin file now.

However it appears it's an issue with what I'm using to convert my wav files to cwav.

Do you know of any tool to convert a wav to bcwav/cwav? The current one "BannerTool" which I use to make cwavs for banners works fine for banner sound effects, but it appears to not work with your program. I get an error when I attempt to play them and this doesn't occur if I play a bcwav from a retail theme.
 

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
EDIT: Ok managed to get your updated program. For whatever reason you changed the name of the exe from the first release or what ever version I had at first and was accidentally running the wrong one. I see the options to extract from cwavs.bin file now.

Yeah, I realize after upload last version, my fault.

However it appears it's an issue with what I'm using to convert my wav files to cwav.

Do you know of any tool to convert a wav to bcwav/cwav? The current one "BannerTool" which I use to make cwavs for banners works fine for banner sound effects, but it appears to not work with your program. I get an error when I attempt to play them and this doesn't occur if I play a bcwav from a retail theme.

I tried to make a cwav from "BannerTool" and I realize why not work with my program. BannerTool don't convert wav to cwav, only encapsulate raw wav data in a cwav structure. With banners it may work, but is not a valid cwav for themes and that's why 3DS crash.

The only tool I know to convert wav to bcwav is the one from Nintendo SDK :(
 

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
Well, after a lot of tests of different wav formats, I think i'm sure of what should be the origin wav format before convert to bcwav:

PCM unsigned 8-bit
Sampling rate: 8000 hz
Audio channels: mono

Some wavs with sampling rate of 16000 hz or 16 bit can be work, but many others not, so I don't recommend waste time on trying.
 

xextil

Active Member
OP
Newcomer
Joined
Mar 12, 2007
Messages
38
Trophies
0
XP
216
Country
The CWAVs from the Legend of Zelda theme use 32khz and I used those with the SDK converter and it worked. Except for the open from sleep sound effect. That one doesn't play for some reason. :P

Yeah, some sounds with higher sampling rate works, but may cause that others sounds not, it's a matter of try.
 

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    So why is everyone happy some fat dude in red clothes break in for milk and cookies?
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Who?
  • M4x1mumReZ @ M4x1mumReZ:
    Oh wait that's me
  • M4x1mumReZ @ M4x1mumReZ:
    Not a dude btw
  • M4x1mumReZ @ M4x1mumReZ:
    Ho ho ho
  • ZeroT21 @ ZeroT21:
    I didn't know santa was this close

    :rofl:
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Nah, it's padoru
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Link for context ^^
  • ZeroT21 @ ZeroT21:
    Ah, but I only
    see saber in a santa suit
  • M4x1mumReZ @ M4x1mumReZ:
    That's Reimu Hakurei from Touhou
  • ZeroT21 @ ZeroT21:
    I'm not all too familiar with anime memes
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    I'm the big OG around here :)
    +1
  • ZeroT21 @ ZeroT21:
    noted
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Your pfp is anime
  • M4x1mumReZ @ M4x1mumReZ:
    How come you don't get it?
  • ZeroT21 @ ZeroT21:
    I just happened to ''borrow stuff'' I've seen by accident
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Ah, I see.
  • ZeroT21 @ ZeroT21:
    genetic trait, can't be helped or saved
    +1
  • ZeroT21 @ ZeroT21:
    Oops, gotta run, before boss see me slacking
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    Okay, see you.
    +2
  • M4x1mumReZ @ M4x1mumReZ:
    Gotta skidaddle
    +3
  • M4x1mumReZ @ M4x1mumReZ:
    "Skittles" Angel Knight
    +2
  • Z-BOI @ Z-BOI:
    anyone wanna be friends on ancf also know as animal crossing city folk i've got wiimmfi and if you do to friend me my code is 4859-3318-6620 name Z-boi town: pog
    Z-BOI @ Z-BOI: anyone wanna be friends on ancf also know as animal crossing city folk i've got wiimmfi and if...