mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-06 21:05:04 +00:00
e221bcb023
after this, the following has to be done: - PCM playback - PCM playback on PCE and NES (let's hope this is possible)
30 lines
580 B
C
30 lines
580 B
C
#include "../ta-utils.h"
|
|
|
|
struct DivSample {
|
|
String name;
|
|
int length, rate, loopStart;
|
|
signed char vol, pitch;
|
|
unsigned char depth;
|
|
short* data;
|
|
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP;
|
|
short* rendData;
|
|
unsigned char* adpcmRendData;
|
|
|
|
bool save(const char* path);
|
|
DivSample():
|
|
name(""),
|
|
length(0),
|
|
rate(32000),
|
|
loopStart(-1),
|
|
vol(0),
|
|
pitch(0),
|
|
depth(16),
|
|
data(NULL),
|
|
rendLength(0),
|
|
adpcmRendLength(0),
|
|
rendOff(0),
|
|
rendOffP(0),
|
|
rendData(NULL),
|
|
adpcmRendData(NULL) {}
|
|
~DivSample();
|
|
};
|