Castle Crashers
Недостаточно оценок
Listen to Castle Crashers' Music Outside of the Game
От sev
Play all of Castle Crashers' music in your favorite audio player straight from the game files!
No more YouTube links or bad quality!
   
Наградить
В избранное
В избранном
Удалить
General Information
All of the in-game music for Castle Crashers is encoded using Xbox Native Audio, a codec created for and used by the Xbox; it's really just a RIFF container for .WMA (Windows Media Audio), except allowing higher bitrates and more audio channels. Xbox Native Audio files use the file extensions .XMA and .XWM. Some audio players like VLC can play some .XMA/.XWM files out of the box, though not very well.

Xbox Native Audio is used by both the Xbox, and by direct association (the Xbox uses it, after all), DirectX. DirectX runs on both Windows and Xbox consoles natively; Xbox Native Audio is present in a lot of different products because of this, including Castle Crashers. The Xbox Native Audio codec gives a higher compression ratio than most ADPCM audio formats while retaining a higher quality, so it's well-liked by many Xbox/DirectX developers.

.XMA/.XWM files can be decoded by the tool xwmaencode.exe included with the DirectX SDK (as early as 2009, I think, though it may have existed beforehand). This tool can also encode (if it isn't obvious by the filename) to .XMA/.XWM.
Simpler terms, please?
Basically, you can't play Xbox Native Audio files in any music players like they're supposed to be heard (please let me know if there are music players/plugins for them that can intentionally handle .XMA/.XWM files), so those of you that want to jam to Castle Crashers tunes 24/7 are left out in the dust.

...Unless you convert them to another format first.
This is where the purpose of this guide comes in: Converting the .XMA files to a more common format, .WAV.
Decoding Instructions and Tool Download
Thanks to the mentioned tool xwmaencode.exe, it's possible to decode all of the music used in Castle Crashers. I have created a small batch script, decode.cmd, that automatically iterates over all of the files in your Castle Crashers' music folder, sends them to xwmaencode.exe for decoding, and then saves the results in .WAV format in a new folder called music_decoded.

Obviously, this solution is only for Windows operating systems only. Let me know if you have any other problems.

Step 1. Download the archive
.png]Download xwmaencode.exe and decode.cmd in a .ZIP archive from the links below:

Step 2. Unpack the contents
.png]Extract and place the contents of the archive in your CastleCrashers/data folder
Example location:
C:\Program Files\Steam\SteamApps\common\CastleCrashers\data

Step 3. Run the batch file
.png]Double-click decode.cmd, or right click it and select "Open" from the context menu, to open and run the batch script file. It will convert all of the music to .WAV for you.

Step 4. Wait
.png]Don't close the window or press any key combinations, or you might stop the conversion early! Just let it finish.

You're done!
Congratz, you now have all of Castle Crashers' music at your disposal, ready to play!
.png]
Комментариев: 17
Corporal_Jay 22 дек. 2021 г. в 16:09 
Okay, thanks for the info. (:
sev  [создатель] 22 дек. 2021 г. в 16:05 
files died and I'm not going to spend time redoing it. it's not difficult.
Corporal_Jay 22 дек. 2021 г. в 15:38 
So this no longer works? (I want to get the game solely for the music)
Bently 1 янв. 2021 г. в 10:22 
I guess that silence means "Sadly, i no longer have the files"
I managed to find the xwmaencode.exe anyway.
Bently 30 дек. 2020 г. в 6:45 
Well... are you going to fix it? Or you no longer have the files?
sev  [создатель] 29 дек. 2020 г. в 9:41 
unfortunate
Bently 29 дек. 2020 г. в 8:05 
Both links doesn't work anymore.
ileryon 19 мая. 2018 г. в 12:13 
low quality sound
sev  [создатель] 4 сен. 2017 г. в 20:13 
I don't know if the sound effects are in that format, and they are probably in the pak files like the other guy said

check xentax
jeff 4 сен. 2017 г. в 10:59 
I'd like to get the xma files for the sounds instead of the music. Any idea on how to do that?