mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-06 12:55:05 +00:00
7ba8607270
as of now we store and use the actual sample rate as opposed to an index fo a fixed rate table. this allows for more flexibility in a future file format...
28 lines
523 B
C
28 lines
523 B
C
#include "../ta-utils.h"
|
|
|
|
struct DivSample {
|
|
String name;
|
|
int length, rate;
|
|
signed char vol, pitch;
|
|
unsigned char depth;
|
|
short* data;
|
|
unsigned int rendLength, adpcmRendLength, rendOff;
|
|
short* rendData;
|
|
unsigned char* adpcmRendData;
|
|
|
|
bool save(const char* path);
|
|
DivSample():
|
|
name(""),
|
|
length(0),
|
|
rate(32000),
|
|
vol(0),
|
|
pitch(0),
|
|
depth(16),
|
|
data(NULL),
|
|
rendLength(0),
|
|
adpcmRendLength(0),
|
|
rendOff(0),
|
|
rendData(NULL),
|
|
adpcmRendData(NULL) {}
|
|
~DivSample();
|
|
};
|