prepare for ADPCM-B

This commit is contained in:
tildearrow 2022-02-02 23:17:16 -05:00
parent e9f9cfd518
commit 07b767bee1
2 changed files with 13 additions and 1 deletions

View File

@ -523,6 +523,8 @@ class DivEngine {
unsigned char* adpcmMem;
size_t adpcmMemLen;
unsigned char* adpcmBMem;
size_t adpcmBMemLen;
DivEngine():
output(NULL),
@ -573,6 +575,8 @@ class DivEngine {
oscBuf{NULL,NULL},
oscSize(1),
adpcmMem(NULL),
adpcmMemLen(0) {}
adpcmMemLen(0),
adpcmBMem(NULL),
adpcmBMemLen(0) {}
};
#endif

View File

@ -4,6 +4,14 @@ struct DivSample {
String name;
int length, rate, centerRate, loopStart, loopOffP;
signed char vol, pitch;
// valid values are:
// - 0: ZX Spectrum overlay drum (1-bit PCM)
// - 1: 1-bit NES DPCM
// - 4: BRR
// - 5: raw ADPCM-A
// - 6: raw ADPCM-B
// - 8: 8-bit PCM
// - 16: 16-bit PCM
unsigned char depth;
short* data;
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP, rendOffContiguous;