mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 05:55:12 +00:00
b812fc4041
issue #70
33 lines
686 B
C
33 lines
686 B
C
#include "../ta-utils.h"
|
|
|
|
struct DivSample {
|
|
String name;
|
|
int length, rate, centerRate, loopStart, loopOffP;
|
|
signed char vol, pitch;
|
|
unsigned char depth;
|
|
short* data;
|
|
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP, rendOffContiguous;
|
|
short* rendData;
|
|
unsigned char* adpcmRendData;
|
|
|
|
bool save(const char* path);
|
|
DivSample():
|
|
name(""),
|
|
length(0),
|
|
rate(32000),
|
|
centerRate(8363),
|
|
loopStart(-1),
|
|
loopOffP(0),
|
|
vol(0),
|
|
pitch(0),
|
|
depth(16),
|
|
data(NULL),
|
|
rendLength(0),
|
|
adpcmRendLength(0),
|
|
rendOff(0),
|
|
rendOffP(0),
|
|
rendOffContiguous(0),
|
|
rendData(NULL),
|
|
adpcmRendData(NULL) {}
|
|
~DivSample();
|
|
};
|