Jump to content

Photo

How to Encode xWMA Files


  • Please log in to reply
47 replies to this topic

#1
blankstate

blankstate

    Journeyman

  • Members
  • Pip
  • 39 posts
Decided to pull this out from my Game of Thrones Cover Main Menu Theme Replacement Mod and pop it up here to get the word out!

The first thing you need to know is that Skyrim reads .xwm files for its audio. The only utility I was able to find that converts audio files (WAVs, specifically) into .xwm format is a utility in the Microsoft DirectX Software Developer's Kit. The SDK is around 500+ MB, so please make sure you really want to go through with this before downloading and installing.

The latest DirectX SDK build is from June 2010. Your Visual Basic C++ redistributable packages may be and probably are more current, and this will cause errors with the SDK's installation. You may need to uninstall your most recent or two most recent packages via Add/Remove Programs in order for the SDK installation to work.

Once installed, navigate (in Windows) to the directory /Program Files/Microsoft DirectX SDK (June 2010)/Utilities/bin/x86. Drop the file(s) you wish to convert in this folder. Rename them to something very simple, for example '1.wav.'

Go to Start -> Run -> Type CMD and hit enter. This will bring up the DOS prompt. Type cd\ to return to root directory, and using 'cd <dir>', navigate to the folder above. For instance, on my computer, I go:

cd program files
cd microsoft directx sdk (june 2010)
cd utilities
cd bin
cd x86

Once you're there, type 'xwmaencode <file.wav> <file.xwm>' For example, if I wanted to make '1.wav' into main menu music, I would type 'xwmaencode.exe 1.wav mus_maintheme.xwm'. Press 'enter' and voila, you have converted a file to .xwm format. I'm hoping someone releases a utility for this sometime in the future.

I'm not sure if the entire SDK is required for xWMAEncode.exe to work. I may try pulling that out later on today and seeing if it can survive standalone, in which case I will put it... Somewhere where people can download it. It'd streamline the whole process quite a bit.

Anyhow, hope someone finds this useful. :)

#2
VerticalHilarity

VerticalHilarity

    Stranger

  • Supporter
  • Pip
  • 1 posts
Outstanding. Works like a charm, just as OP prescribes. blankstate is ace in my book! Now I've put town_05 from oblivion into skyrim because every single elder scrolls game I play must contain that song. I also highly recommend particular cuts from Bo Hansson's - Sagan om ringen from 1971. Lord of the rings inspired instrumental music with lots of hammond organ! Thanks!!

Edited by VerticalHilarity, 23 November 2011 - 10:17 PM.


#3
karak

karak

    Stranger

  • Members
  • Pip
  • 8 posts
THis is great guys. But the main issue is finding the xma encoder.exe file without having to rejigger your systems. Can anyone post a link to just the exe, or upload it to a file provider?

#4
Deathwish01

Deathwish01

    Stranger

  • Members
  • Pip
  • 4 posts
http://www.skyrimnex...ile.php?id=1525

that file is up for DL now

#5
onson

onson

    Fan

  • Premium Member
  • 263 posts
Where do you place the music files after conversion so they play in game?

#6
Oomo

Oomo

    Old hand

  • Members
  • PipPipPip
  • 520 posts
Awesome thanks!

Now in Oblivion you just dropped music files into say, /oblivion/music/explore and the game would randomly select a file to play from that directory, be it the originals or the ones you added. But in Skyrim, you have to actually REPLACE the files with the exact name to work don't you? Or is it possible to add directories through an .esp to extend the list?

~Hopes that made sense~

#7
karak

karak

    Stranger

  • Members
  • Pip
  • 8 posts

Awesome thanks!

Now in Oblivion you just dropped music files into say, /oblivion/music/explore and the game would randomly select a file to play from that directory, be it the originals or the ones you added. But in Skyrim, you have to actually REPLACE the files with the exact name to work don't you? Or is it possible to add directories through an .esp to extend the list?

~Hopes that made sense~

Ya...Sadly I think you do. I haven't heard any responses back from anyone about just putting it into the folder and naming it +1 like the old days

#8
NeoJD

NeoJD

    Regular

  • Premium Member
  • 87 posts

http://www.skyrimnexus.com/downloads/file.php?id=1525

that file is up for DL now


It got locked or something. How bout uploading it to some filehoster?

#9
ghermann3

ghermann3

    Stranger

  • Members
  • Pip
  • 1 posts
I put the .exe on mediafire for now:
Download xWMAEncode.zip (394.19 KB)

It WILL NOT WORK if you don't first have Microsoft Visual C++ Runtimes installed:
Visual C++ Runtimes 32-bit (4.8 MB)
Visual C++ Runtimes 64-bit (5.5 MB)



I apologize in advance when, 3 months from now, someone finds this thread and the Mediafire link goes nowhere. If it's broken, download the full 500MB DirectX SDK and follow the steps in the first post of this thread.

#10
Adolon

Adolon

    Enthusiast

  • Members
  • PipPip
  • 249 posts
Is this for adding music or for replacing music?




IPB skins by Skinbox
Page loaded in: 2.706 seconds