WAVC file format

Applies to:
BG1, BG1: TotS, BG2, BG2: ToB, PST, IWD, IWD:HoW, IWD:TotL, IWD2

General Description
WAVC files contain sounds used within the game. Unlike ACM files, WAVC can be played from either the override folder or BIF files. WAVC files are 22050 Hz, 16 bits, and must be renamed to *.WAV before being used in the game. The IE plays WAVC files at twice the speed of the original WAV file.

Detailed Description
WAVC is the sound file format used in Infinity Engine. The file is simply an ACM file with the following additional header attached.

Offset Size (data type) Description
0x0000 4 (char array) Signature ('WAVC')
0x0004 4 (char array) Version ('V1.0')
0x0008 4 (dword) Uncompressed size of file
0x000a 4 (dword) Compressed size of file
0x0010 4 (dword) Pointer to ACM data (usu. 0x1c)
0x0014 2 (word) Number of sound channels (usu. 1)
0x0016 2 (word) Number of bits per sample (usu. 16-bit)
0x0018 2 (word) Sample rate (usu. 22050 Hz)
0x001a 2 (word) Unused (usu. 0x777e)
0x001c 4 (bytes) Standard ACM header (0x97280301)