Jump to content


Photo

Custom Sound File Builder


  • Please log in to reply
3 replies to this topic

#1 Quantifier

Quantifier

    Sergeant

  • Forum Members
  • PipPipPip
  • 78 posts

Posted 30 May 2008 - 05:49 PM

Here are some development screenshots of my latest project.
Clipboard01.png
Clipboard02.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, 30 May 2008 - 05:50 PM.


#2 gufu

gufu

    Captain

  • Forum Members
  • PipPipPipPip
  • 138 posts

Posted 31 May 2008 - 10:59 PM

Looks great, keep working. :)
Proud member of Commanders Tommy fan club.

#3 uncy

uncy

    Sergeant

  • Forum Members
  • PipPipPip
  • 88 posts

Posted 03 June 2008 - 08:29 AM

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
---------------------------------------------------
Uncy

#4 Quantifier

Quantifier

    Sergeant

  • Forum Members
  • PipPipPip
  • 78 posts

Posted 03 June 2008 - 08:37 AM

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.