prepare for IMA ADPCM

This commit is contained in:
tildearrow 2024-03-17 12:24:19 -05:00
parent 8b3c48d42e
commit 83e7b2fbb8
6 changed files with 42 additions and 3 deletions

View file

@ -46,6 +46,7 @@ enum DivSampleDepth: unsigned char {
DIV_SAMPLE_DEPTH_VOX=10,
DIV_SAMPLE_DEPTH_MULAW=11,
DIV_SAMPLE_DEPTH_C219=12,
DIV_SAMPLE_DEPTH_IMA_ADPCM=13,
DIV_SAMPLE_DEPTH_16BIT=16,
DIV_SAMPLE_DEPTH_MAX // boundary for sample depth
};
@ -114,6 +115,7 @@ struct DivSample {
// - 10: VOX ADPCM
// - 11: 8-bit µ-law PCM
// - 12: C219 "µ-law" PCM
// - 13: IMA ADPCM
// - 16: 16-bit PCM
DivSampleDepth depth;
bool loop, brrEmphasis, dither;
@ -139,8 +141,9 @@ struct DivSample {
unsigned char* dataVOX; // 10
unsigned char* dataMuLaw; // 11
unsigned char* dataC219; // 12
unsigned char* dataIMA; // 13
unsigned int length8, length16, length1, lengthDPCM, lengthZ, lengthQSoundA, lengthA, lengthB, lengthK, lengthBRR, lengthVOX, lengthMuLaw, lengthC219;
unsigned int length8, length16, length1, lengthDPCM, lengthZ, lengthQSoundA, lengthA, lengthB, lengthK, lengthBRR, lengthVOX, lengthMuLaw, lengthC219, lengthIMA;
unsigned int samples;
@ -349,6 +352,7 @@ struct DivSample {
dataVOX(NULL),
dataMuLaw(NULL),
dataC219(NULL),
dataIMA(NULL),
length8(0),
length16(0),
length1(0),
@ -362,6 +366,7 @@ struct DivSample {
lengthVOX(0),
lengthMuLaw(0),
lengthC219(0),
lengthIMA(0),
samples(0) {
for (int i=0; i<DIV_MAX_CHIPS; i++) {
for (int j=0; j<DIV_MAX_SAMPLE_TYPE; j++) {