2021-12-15 19:15:44 +00:00
|
|
|
#include "../ta-utils.h"
|
|
|
|
|
2021-05-11 20:08:08 +00:00
|
|
|
struct DivSample {
|
|
|
|
String name;
|
2022-01-15 22:54:21 +00:00
|
|
|
int length, rate, loopStart;
|
2021-05-11 20:26:38 +00:00
|
|
|
signed char vol, pitch;
|
|
|
|
unsigned char depth;
|
2021-05-11 20:08:08 +00:00
|
|
|
short* data;
|
2022-01-24 17:39:05 +00:00
|
|
|
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP;
|
2021-05-13 07:39:26 +00:00
|
|
|
short* rendData;
|
2021-12-10 09:22:13 +00:00
|
|
|
unsigned char* adpcmRendData;
|
2021-05-13 07:39:26 +00:00
|
|
|
|
2021-12-18 06:03:59 +00:00
|
|
|
bool save(const char* path);
|
2021-05-13 07:39:26 +00:00
|
|
|
DivSample():
|
|
|
|
name(""),
|
|
|
|
length(0),
|
2021-12-23 23:04:44 +00:00
|
|
|
rate(32000),
|
2022-01-15 22:54:21 +00:00
|
|
|
loopStart(-1),
|
2021-05-13 07:39:26 +00:00
|
|
|
vol(0),
|
|
|
|
pitch(0),
|
|
|
|
depth(16),
|
|
|
|
data(NULL),
|
|
|
|
rendLength(0),
|
2021-12-11 03:51:50 +00:00
|
|
|
adpcmRendLength(0),
|
2021-12-11 04:41:00 +00:00
|
|
|
rendOff(0),
|
2022-01-24 17:39:05 +00:00
|
|
|
rendOffP(0),
|
2021-12-10 09:22:13 +00:00
|
|
|
rendData(NULL),
|
|
|
|
adpcmRendData(NULL) {}
|
2021-12-15 19:15:44 +00:00
|
|
|
~DivSample();
|
2021-05-11 20:08:08 +00:00
|
|
|
};
|