Sound Effects
Sound Effects
Is there any chance any further updates could use a folder with all the samples in (like GR++) so we could make our own sound effect packs? Microsoft's XWB format was recently hacked, and extractor apps now exist, but nothing to compile them (as of yet). I'd love to make my own pack, and would love to hear other peoples packs too.
Re: Sound Effects
Agreed, excellent idea. 
Re: Sound Effects
Is it just me, or do I hear some familiar samples from Llamatron in there?
"Oh dear lord, I slightly soiled myself. Oxfam won’t be pleased."
- gilesgoat
- Sheepie Whore

- Posts: 27259
- Joined: Wed Sep 03, 2003 7:54 am 0
- Location: Monfalcone, Italy
- Contact:
Re: Sound Effects
You don't really need to hack anything because the moment you donwload/install the DirectX SDK you can make/create
your own xwb stuff by yourself.
The reason they are not "single samples open" is because the XAUDIO/XACT lib works with "a blob" of wavebanks and
soundbanks that we load all in once at startup.
There was a time I was actually doing a streaming of the soundtracks but we found out that after all "it wasn't such a
great idea" there were issues of performance/glitches.
I don't know "what kind of shite" you could get in replacing the wavebanks with another, probably if you do one with
the same number of cues in who knows .. it may even work ... boh ..
Anyway the things are not treated like individual files I think it's more like "an array of samples", of course they are
all compressed into xWMA format ( the ONLY one supported by MS, apart ADPCM and no compression at all ).
About compression/format there are ( of course ) licensing issues that's why MS supports only their own, the advantage
of using XACT/XAUDIO is that you have a thing that you can literally "drag and replace" and works on the PC the same
way it would work on the 360.
Plus, XAUDIO comes for totally free
your own xwb stuff by yourself.
The reason they are not "single samples open" is because the XAUDIO/XACT lib works with "a blob" of wavebanks and
soundbanks that we load all in once at startup.
There was a time I was actually doing a streaming of the soundtracks but we found out that after all "it wasn't such a
great idea" there were issues of performance/glitches.
I don't know "what kind of shite" you could get in replacing the wavebanks with another, probably if you do one with
the same number of cues in who knows .. it may even work ... boh ..
Anyway the things are not treated like individual files I think it's more like "an array of samples", of course they are
all compressed into xWMA format ( the ONLY one supported by MS, apart ADPCM and no compression at all ).
About compression/format there are ( of course ) licensing issues that's why MS supports only their own, the advantage
of using XACT/XAUDIO is that you have a thing that you can literally "drag and replace" and works on the PC the same
way it would work on the 360.
Plus, XAUDIO comes for totally free
Giles the billy goat
"Baa"
"Baa"
Re: Sound Effects
I think you're looking for the XACT Audio Creation Tool, which is in the completely freely downloadable Microsoft DirectX SDK (I'm still on March 09, but there's probably a more recent one). Weighs in in the hundreds of megs, mind.
Not sure if it's going to be anything other than hard to do without the lads' project files though
.
Not sure if it's going to be anything other than hard to do without the lads' project files though
- gilesgoat
- Sheepie Whore

- Posts: 27259
- Joined: Wed Sep 03, 2003 7:54 am 0
- Location: Monfalcone, Italy
- Contact:
Re: Sound Effects
No I don't think there is not, last time I did check March 2009 was it, unless something came out in the last week or so.Dio wrote:I think you're looking for the XACT Audio Creation Tool, which is in the completely freely downloadable Microsoft DirectX SDK (I'm still on March 09, but there's probably a more recent one). Weighs in in the hundreds of megs, mind.
Not sure if it's going to be anything other than hard to do without the lads' project files though.
( Well I am talking about DirectX 9 ).
Yeah you can't really do anything without the project file, but as I said I wonder what would happen if someone would simply create a thing by its own and replace it in.
Ah BTW, I am 99% sure if you do not use THE SAME version ( March 2009 ) of the XACT tool the thing will refuse to work
because the "version" in the header will be different.
Giles the billy goat
"Baa"
"Baa"
Re: Sound Effects
I hope that's not the case. You wouldn't want to patch a game six months down the line, having installed a new DX SDK version in order to add some new feature, and have to patch 200M of audio...
At the very least, you'd expect older banks to be compatible with newer libs.
At the very least, you'd expect older banks to be compatible with newer libs.
- gilesgoat
- Sheepie Whore

- Posts: 27259
- Joined: Wed Sep 03, 2003 7:54 am 0
- Location: Monfalcone, Italy
- Contact:
Re: Sound Effects
Erm .. until maybe this March 2009 SDK .. in which for the first time even I saw "something happening" before thatDio wrote:I hope that's not the case. You wouldn't want to patch a game six months down the line, having installed a new DX SDK version in order to add some new feature, and have to patch 200M of audio...
At the very least, you'd expect older banks to be compatible with newer libs.
this was exactly the case, you had to rebuild the whole XACT thing otherwise you were getting PRECISELY an
error I can't remeber basically telling you "this audio been built with an older version of SDK therefore it can't run" ...
Giles the billy goat
"Baa"
"Baa"
Re: Sound Effects
Ouch. Very ouch.
- Sir_LANs-a-lot
- Sheepie Whore

- Posts: 12143
- Joined: Mon Mar 10, 2003 1:00 am 0
- Location: Here
Re: Sound Effects
The XNA Game Studio Express comes with XACT creation utils
[Sir_LANs-a-lot]
Meat is murder.
Tasty, tasty murder.
Meat is murder.
Tasty, tasty murder.
Re: Sound Effects
XNA Game Studio Express 3.1 comes with two XACT Audio Creation Tools - 2.0 and 3.0. Any idea which one I should be using?
- gilesgoat
- Sheepie Whore

- Posts: 27259
- Joined: Wed Sep 03, 2003 7:54 am 0
- Location: Monfalcone, Italy
- Contact:
Re: Sound Effects
Try 3 .. I think ...bcass wrote:XNA Game Studio Express 3.1 comes with two XACT Audio Creation Tools - 2.0 and 3.0. Any idea which one I should be using?
Giles the billy goat
"Baa"
"Baa"
Re: Sound Effects
OK, I tried testing using XACT Audio Creation Tools 3.0. The first thing I did was extract all your existing samples from GRWaves.xwb (using toWAV). Unfortunately, toWAV only names the extracted files generically. Inspecting your GRSounds.xsb file I was able to ascertain the file names for the samples. The filenames didn't seem to be stored (in the xsb) in the same order that toWAV dumped the samples from the original xwb, so I had to guess and match the file names to the files manually.
Anyway, I created a new project and added a xwb using these samples, and the game runs fine, but with no sound effects at all (music works fine). I tried the same process, using XACT Audio Creation Tools 2.0, but the game reported an error, and wouldn't load.
When creating the xwb, a xgs file is also created. I tried replacing your existing xgs file with the one I created, but still no success (game loads OK, but with no sound effects).
Any other ideas?
Anyway, I created a new project and added a xwb using these samples, and the game runs fine, but with no sound effects at all (music works fine). I tried the same process, using XACT Audio Creation Tools 2.0, but the game reported an error, and wouldn't load.
When creating the xwb, a xgs file is also created. I tried replacing your existing xgs file with the one I created, but still no success (game loads OK, but with no sound effects).
Any other ideas?
- gilesgoat
- Sheepie Whore

- Posts: 27259
- Joined: Wed Sep 03, 2003 7:54 am 0
- Location: Monfalcone, Italy
- Contact:
Re: Sound Effects
It's too late now , if I have any I'll let you know "tomorrow".bcass wrote:OK, I tried testing using XACT Audio Creation Tools 3.0. The first thing I did was extract all your existing samples from GRWaves.xwb (using toWAV). Unfortunately, toWAV only names the extracted files generically. Inspecting your GRSounds.xsb file I was able to ascertain the file names for the samples. The filenames didn't seem to be stored (in the xsb) in the same order that toWAV dumped the samples from the original xwb, so I had to guess and match the file names to the files manually.
Anyway, I created a new project and added a xwb using these samples, and the game runs fine, but with no sound effects at all (music works fine). I tried the same process, using XACT Audio Creation Tools 2.0, but the game reported an error, and wouldn't load.
When creating the xwb, a xgs file is also created. I tried replacing your existing xgs file with the one I created, but still no success (game loads OK, but with no sound effects).
Any other ideas?
I don't think filesnames are stored ( to be honest I really don't know anything about how that file(s) is(are) made ) but
I SUPPOSE there could be cue names at some point somewhere because it is possible to set properties/stuff to cue
by calling it by name.
Yeah I am not surprised at 2.0 becuase I think we all done using "the last SDK" so is 3.0 and at this point 2.0 is not
compatible.
I think that "xgs" are "global settings", nothing to do with samples at all, more compression settings and stuff like that.
xsb are the "sound banks" so I suppose the "array" of compressed samples.
Anyway I am telling you "the paranoia" is that even if - let's suppose - I'd have a list of files/samples "in a directory" I
really would not know what to do of them, as XAUDIO libs and such are not exactly "so practical to be used" in that way,
it's better/easier when you have "the blob" of all the samples in once.
You still would have had to "recreate a blob" to use them.
I think the filenames are totally lost once you create the xsb ( I am not sure ) because there's really no need for them
at most you may/should(?) have the cue names in it.
But then again, as a .h with the indexes is created you may not even need that, just the index would be enough so it
could be there's really no information about names/etc. in the xsb itself.
I have no idea of what I am saying, I am just guessing.
Anyway I think it would be quite a PITA to support "user customizeable sound effects"
Giles the billy goat
"Baa"
"Baa"
Re: Sound Effects
Not sure if the cue names go in at all, I know it spits out an enum of the cue names to include with the source but they all evaluate to basically just an index. I know you can specify params and alter them by name but in GRR I don't use any but the defaults.
Be interesting to hear if anyone does manage to replace the sample set
.
Be interesting to hear if anyone does manage to replace the sample set
Justified and Ancient.

