Page 1 of 1

WAV sounds

PostPosted: 08 Oct 2015, 14:35
by The Dark Lord
Hi,
I want to use original KaM sounds (a pikeman saying 'troop halt'), but these have .snd extensions. Usually I use some online convertor to get them to this dreadful .wav format, but .snd is not recognized by any online convertor and I'd rather not download a program to do this...
Any tips?

Re: WAV sounds

PostPosted: 08 Oct 2015, 16:00
by Esthlos
Why can't you use KaM Remake's files? They're .wav files already...

Re: WAV sounds

PostPosted: 08 Oct 2015, 16:52
by Krom
Open them in hex editor and see if they are WAV in disguise (RIFF header) , if so - rename.

Re: WAV sounds

PostPosted: 08 Oct 2015, 16:53
by The Dark Lord
Hmm, I checked the 'Sounds' folder, I figured that would be a logic place to stash sound files. :rolleyes:
I assumed KaM Remake just used the original TPR files but now I found them in data\sfx\. Thanks.

@Krom: I tried the renaming, but that makes the Remake crash :D

Re: WAV sounds

PostPosted: 08 Oct 2015, 17:06
by Krom
Try renaming them to mp2.
IIRC snd music files were mp2 in some KaM versions.

Re: WAV sounds

PostPosted: 10 Dec 2015, 10:28
by thibmo
Indeed they are .mp2 files.
And for the audiophiles/data geeks I exported a little bit of data on one of the files (Thanks Steve Daulton for this plugin).
It's of the word "serfs". :P

http://kp-wiki.org/OtherStuff/sample-data.html

All .mp2 files seem to all have the following start bytes: 0xFF 0xFD 0x20 0xC4 (start offset: 0)
Some fileformats have a small bit of text in the file header to identify them, these seem to not have that, yet these 4 seem to be the same on all the sound files I randomly picked from the sfx folder and it's sub-folders.
Could be to identify?
I think so as for MPEG that is: 0x00 0x00 0x01 0xB.. (start offset: 0)