Jump to content
XCOMUFO & Xenocide

Custom Sound File Builder


Recommended Posts

Here are some development screenshots of my latest project.

post-2677-1212190883_thumb.png

post-2677-1212190889_thumb.png

There are still few things to do:

- only battlescape editor is reachable from gui

- custom samples (external wave files) are disabled

- procedure generating final file is never used :P

 

I had to make two ways to read pre-1.4 sounds. If you read directly from game files, sound data will work correctly only in CE. DOS version requires resampled files - this degrades quality slightly and can't be done just anyhow, proper sample rate conversion is a subject for some bigger project.

 

It has a dark theme on screenshots because it uses system native colors and this is how my whole system looks.

 

If you have some reasonable ideas, comments or questions, feedback is welcome.

Edited by Quantifier
Link to comment
Share on other sites

Hey Nice job!

 

I have a question, maybe you can help me. I have been playing with the Sample.Cat files, but I can't add sounds longer than the ones I replace... i don't understand the few first 6 or more bytes before the sound data begins...

 

Thanks

Link to comment
Share on other sites

Hey Nice job!

 

I have a question, maybe you can help me. I have been playing with the Sample.Cat files, but I can't add sounds longer than the ones I replace... i don't understand the few first 6 or more bytes before the sound data begins...

 

Thanks

 

This is some sort of header, I haven't fully understood it either. Version with 1.4 patch has 3 bytes before the WAV file, unpatched version has 6 bytes before raw pcm data.

If you want to use longer samples, then you'll need to rebuild the file with modified "table of contents". This table is located at the very beginning of the .cat file, and for every entry it has two 4-byte words: offset and the length.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...