mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +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;
|
||||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue