mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
prepare for ADPCM-B
This commit is contained in:
parent
e9f9cfd518
commit
07b767bee1
2 changed files with 13 additions and 1 deletions
|
@ -523,6 +523,8 @@ class DivEngine {
|
||||||
|
|
||||||
unsigned char* adpcmMem;
|
unsigned char* adpcmMem;
|
||||||
size_t adpcmMemLen;
|
size_t adpcmMemLen;
|
||||||
|
unsigned char* adpcmBMem;
|
||||||
|
size_t adpcmBMemLen;
|
||||||
|
|
||||||
DivEngine():
|
DivEngine():
|
||||||
output(NULL),
|
output(NULL),
|
||||||
|
@ -573,6 +575,8 @@ class DivEngine {
|
||||||
oscBuf{NULL,NULL},
|
oscBuf{NULL,NULL},
|
||||||
oscSize(1),
|
oscSize(1),
|
||||||
adpcmMem(NULL),
|
adpcmMem(NULL),
|
||||||
adpcmMemLen(0) {}
|
adpcmMemLen(0),
|
||||||
|
adpcmBMem(NULL),
|
||||||
|
adpcmBMemLen(0) {}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4,6 +4,14 @@ struct DivSample {
|
||||||
String name;
|
String name;
|
||||||
int length, rate, centerRate, loopStart, loopOffP;
|
int length, rate, centerRate, loopStart, loopOffP;
|
||||||
signed char vol, pitch;
|
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;
|
unsigned char depth;
|
||||||
short* data;
|
short* data;
|
||||||
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP, rendOffContiguous;
|
unsigned int rendLength, adpcmRendLength, rendOff, rendOffP, rendOffContiguous;
|
||||||
|
|
Loading…
Reference in a new issue