wavelength 1.0.0
Loading...
Searching...
No Matches
Sample.h
Go to the documentation of this file.
1#pragma once
2
9class Sample {
10public:
17
23 void Init();
24
32 int FromStream(const unsigned char *data);
33
41 int ToStream(unsigned char *data) const;
42
49 static int StreamSize();
50
56 void Dump() const;
57
58 unsigned short mSampleRate;
62};
One waveform of a bank, as the bank file records it.
Definition sample.h:10
static int StreamSize()
Report the size of the stream form.
int ToStream(unsigned char *data) const
Write the sample in its stream form, as version 1.
Sample()
Create a sample and reset it.
int FromStream(const unsigned char *data)
Read the sample from its stream form.
unsigned short mSampleRate
Definition sample.h:67
int mSampleStart
Definition Sample.h:61
void Dump() const
Print the fields to the diagnostic stream.
int mLoopStop
Definition Sample.h:60
unsigned int mLoopStart
Definition sample.h:68
void Init()
Reset every field to zero.