1 #ifndef __Y8950ADPCM_HH__
2 #define __Y8950ADPCM_HH__
4 #include "blargg_common.h"
5 #include "blargg_source.h"
8 typedef unsigned short word
;
9 typedef unsigned __int64 uint64
;
31 unsigned int nowStep
, step
;
43 void ADPCM_init(struct Y8950Adpcm
* this_
, struct Y8950
* y8950
, byte
* ramBank
, int sampleRam
);
44 void ADPCM_reset(struct Y8950Adpcm
* this_
);
45 void ADPCM_setSampleRate(struct Y8950Adpcm
* this_
, int sr
, int clk
);
46 bool ADPCM_muted(struct Y8950Adpcm
* this_
);
47 void ADPCM_writeReg(struct Y8950Adpcm
* this_
, byte rg
, byte data
);
48 byte
ADPCM_readReg(struct Y8950Adpcm
* this_
, byte rg
);
49 int ADPCM_calcSample(struct Y8950Adpcm
* this_
);