The css1.dat file stores the sound effects used in the game. The information here is based on information provided by Jonathon Wilson. The file is a modified WAV List file. The header is as follows:
dword :
NumberOfSounds
array[1..NumberOfSounds]
of dword : OffsetList
// list of offsets within the file for the beginning of the data for
each sound.
dword : DataSize
// size of sound data
This is followed by a "usual" wav header:
struct
{WORD
wFormatTag; //
Format categoryWORD
wChannels; //
Number of channelsDWORD
dwSamplesPerSec;
// Sampling rateDWORD
dwAvgBytesPerSec;
// For buffer estimation WORD
wBlockAlign;
// Data block sizeWORD
wBitsPerSample;
// bit size of each sample
}
The wFormatTag is "1" to
indicate PCM - no compression
wChannels
is "1" to indicate mono
dwSamplesPerSec
is "22050"
dwAvgBytesPerSec
is "44100"
wBlockAlign is
"2"
wBitsPerSample is "16"
Thus each DataChunk consists of wav data in PCM, 22050, mono, 16 bit format.
The sounds are in the following order: