Jump to content

Welcome to 1Emulation.com
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

BCT and CSW Files

- - - - -

  • This topic is locked This topic is locked
No replies to this topic

#1
Omegadox

Omegadox

    Novice

  • Members+
  • 23 posts
  • Gender:Male
Click to view battle stats
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, 02 March 2009 - 05:29 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users