2021-12-10 09:22:13 +00:00
|
|
|
#include "sound/ym2610/ymfm.h"
|
2021-12-09 18:25:02 +00:00
|
|
|
#include "ym2610.h"
|
2021-12-10 09:22:13 +00:00
|
|
|
#include "../engine.h"
|
2021-12-09 18:25:02 +00:00
|
|
|
|
|
|
|
uint8_t DivYM2610Interface::ymfm_external_read(ymfm::access_class type, uint32_t address) {
|
2021-12-10 09:22:13 +00:00
|
|
|
//printf("wants to read from %x\n",address);
|
|
|
|
if (type!=ymfm::ACCESS_ADPCM_A) return 0;
|
|
|
|
if (12*sampleBank+(address>>16)>=parent->song.sampleLen) return 0;
|
|
|
|
return parent->song.sample[12*sampleBank+(address>>16)]->adpcmRendData[(address&0xffff)];
|
2021-12-09 18:25:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void DivYM2610Interface::ymfm_external_write(ymfm::access_class type, uint32_t address, uint8_t data) {
|
2021-12-10 09:22:13 +00:00
|
|
|
}
|