SFX

This type of file contains sound effects.

Note

Byte ordering is little endian

File format

sfx format

Entries Table

+0x00           Offset              [DWORD]
+0x04           Length              [DWORD]
+0x08           UNK_WORD_00         [WORD]          // Id?
+0x0A           UNK_BYTE_00         [BYTE]          // Flag?
+0x0B           UNK_BYTE_01         [BYTE]

Entry

Data are 16-bit samples with single channel (mono) and with a sampling rate of 11025Hz.

Python example for convertion:

SFX entry data convert example
import wave
wave_output = wave.open("out.wav", "wb")
wave_output.setparams((1, 2, 11025, 0, "NONE", "not compressed"))
for i in xrange(0, len(audio_data), 2):
    # Write audio frames and make sure nframes is correct.
    wave_output.writeframes(audio_data[i:i + 2])
wave_output.close()

String Table

+0x00           ID                  [WORD]
+0x02           Name                [CString]
+0x06           Description         [CString]

Example

Note

TODO