The rules have been updated, read them now: Rules!

Magicka .xwb files

Get help on any and all audio formats, or chip in and help others!
Post Reply
User avatar
LoneTiger
n00b
Posts: 10
Joined: Wed Sep 15, 2010 8:51 pm
Has thanked: 1 time

Magicka .xwb files

Post by LoneTiger » Mon Feb 21, 2011 12:58 am

Hello people.

Recently the soundtrack fr Magicka got released for free at the game website but it got me curious about what they included and what the devs did not include.

The magicka sound files are in .xwb format, after a bit of googling used:
XWB/ZWB files unpacker 0.3.3a (unxwb) from Luigi Auriemma's site and it pulled the .wav files from the .xwb ones.

However the music files are weird and I believe you people have more experience with this as the music files do not play properly (winamp) or are just noise (audacity) but they did play great in VLC player. Searching a bit more apparently they use a different codec? not sure if that would be the right term but it got me curious to learn a bit more about it.

I include one of the extracted files as sample. all feedback is welcome to help me push ignorance away :)
You do not have the required permissions to view the files attached to this post.
Do not take life too seriously.
After all you are not getting out of it alive.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 648 times
Contact:

Re: Magicka .xwb files

Post by aluigi » Tue Feb 22, 2011 12:30 am

it's normal with microsoft adpcm and ima adpcm because only some programs like mplayer and vlc handles them correctly

brendan19
ultra-veteran
ultra-veteran
Posts: 384
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 87 times

Re: Magicka .xwb files

Post by brendan19 » Tue Feb 22, 2011 5:40 am

Here's a batch script that will convert Magicka's unlistenable .wav files into listenable .wav files.

Code: Select all

for %%a in (*.WAV) do cmd /c "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy -vvv %%a --sout=#transcode{acodec=s16l}:standard{access=file,dst=%%a.wav} vlc://quit

User avatar
LoneTiger
n00b
Posts: 10
Joined: Wed Sep 15, 2010 8:51 pm
Has thanked: 1 time

Re: Magicka .xwb files

Post by LoneTiger » Tue Feb 22, 2011 8:20 am

aluigi:
How did you identify the file? I know this is probably newbie question audio-files 101 course but heh, it is a start to learn new things :)

brendan19:
The script is for a standard .bat file to execute at extracted magicka files directory?
Do not take life too seriously.
After all you are not getting out of it alive.

brendan19
ultra-veteran
ultra-veteran
Posts: 384
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 87 times

Re: Magicka .xwb files

Post by brendan19 » Tue Feb 22, 2011 8:27 am

Sort of...

I'd copy all of the .XWB files from the magicka installation folder to a new one. Extract the .xwb files using unxwb and then create a new folder for the extracted files e.g. Ambience, UI, Music etc.

Then put the .bat script inside each of those folders with the extracted .wav files and it will convert them for you. The converted files will have a .wav.wav extension. Once converted, you can delete the unlistenable .wav files.

Unfortunately VLC can't playback or listen to the .WMA files inside a couple of the .XWB archives. So that batch script won't work on those files.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 648 times
Contact:

Re: Magicka .xwb files

Post by aluigi » Tue Feb 22, 2011 9:33 am

@LoneTiger
I have identified it by watching the RIFF header, the codec 0x02 is microsoft adpcm.
but even without the file I could have guessed it was msadpcm because I have already had problems with it when in use in xwb files :)

brendan19
ultra-veteran
ultra-veteran
Posts: 384
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 87 times

Re: Magicka .xwb files

Post by brendan19 » Tue Feb 22, 2011 9:39 am

On the topic of the WMA files can you identify what codec these .WMA files are using and if there's a way to convert them to WAV at all aluigi?

Unknown WMA File

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 648 times
Contact:

Re: Magicka .xwb files

Post by aluigi » Tue Feb 22, 2011 9:51 am

this is a xma file, it's strange that it gets extracted as wma.
can you point me to the xwb file if it's not much big?

brendan19
ultra-veteran
ultra-veteran
Posts: 384
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 87 times

Re: Magicka .xwb files

Post by brendan19 » Tue Feb 22, 2011 10:10 am

Sure. Here's the Wave Bank.xwb and the Loc.xwb that contain the .XMA/WMA files.

Audio

The rest of the XWB files seem to be MSADPCM WAV as you said.

User avatar
LoneTiger
n00b
Posts: 10
Joined: Wed Sep 15, 2010 8:51 pm
Has thanked: 1 time

Re: Magicka .xwb files

Post by LoneTiger » Sat Feb 26, 2011 5:41 am

Yes also the Wave Bank.xwb file, using the tool to extract pulls the files as .wma files but they cannot be played. oddly enough audacity is the only one that gives any kind of message about it:

"yadayayada.wma" is a windows media audio file, Audacity cannot open this type of file due patent restrictions. You need to convert it to a supported audio format.
Do not take life too seriously.
After all you are not getting out of it alive.

Post Reply