38 int Unpack(
const unsigned char *data);
48 int Pack(
unsigned char *data)
const;
int Pack(unsigned char *data) const
Write the program as a serialised record of the current version.
unsigned short mNumSampleDescs
Definition program.h:64
unsigned char mPan
Definition program.h:60
unsigned char mVolume
Definition program.h:61
unsigned short mProgram
Definition program.h:59
signed char mTranspose
Definition program.h:62
int Unpack(const unsigned char *data)
Read the program from a serialised record.
signed char mFineTranspose
Definition program.h:63
void Init()
Reset every field to its default.
Program()
Construct a program with the defaults Init() sets.
int PackedSize() const
Report the size of a serialised record of the current version.