38 int Unpack(
const unsigned char *data);
48 int Pack(
unsigned char *data)
const;
int Pack(unsigned char *data) const
Write the sample as a serialised record of the current version.
int Unpack(const unsigned char *data)
Read the sample from a serialised record.
Sample()
Construct a sample with the defaults Init() sets.
unsigned short mSampleRate
Definition sample.h:67
unsigned int mLoopEnd
Definition sample.h:69
unsigned int mOffset
Definition sample.h:70
int PackedSize() const
Report the size of a serialised record of the current version.
void Dump() const
Print the sample to the console.
unsigned int mLoopStart
Definition sample.h:68
void Init()
Reset every field to zero.