Jump to content

BCT and CSW Files


Recommended Posts

These are apparently Table/Wave files for the Sound effects? in ZTP.

 

It is located inside the ZSC2Res ARC file, in a bin folder

 

CSW = Compressed Square Wave?

BCT = Binary CSW Table?

 

DWORD is defined as a big endian 32bit unsigned type

 

struct BCTFileHeader // The BCT File Header

{

DWORD num_sounds; //Number of sound effects

DWORD bits; //bits per sample

DWORD unknown; // ??

DWORD dummy; // ??

};

 

struct Sample

{

DWORD val0; // ??

DWORD val1; // ??

}

 

struct BCTFileData // The data of the file

{

Sample* samples = new Sample [num_sounds]; // Maybe this is samples?

DWORD* offsets = new DWORD [num_sounds];

std::string* names = new std::string [num_sounds];

};

Edited by Omegadox
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...