OPNA/B: fix SSG DAC/TFX not working with LLE core
This commit is contained in:
parent
e9924aeb4b
commit
3b37a5334a
|
@ -531,6 +531,16 @@ void DivPlatformYM2608::acquire_lle(short** buf, size_t len) {
|
||||||
signed char subCycle=0;
|
signed char subCycle=0;
|
||||||
unsigned char subSubCycle=0;
|
unsigned char subSubCycle=0;
|
||||||
|
|
||||||
|
// AY -> OPN
|
||||||
|
ay->runDAC();
|
||||||
|
ay->runTFX(rate);
|
||||||
|
ay->flushWrites();
|
||||||
|
for (DivRegWrite& i: ay->getRegisterWrites()) {
|
||||||
|
if (i.addr>15) continue;
|
||||||
|
immWrite(i.addr&15,i.val);
|
||||||
|
}
|
||||||
|
ay->getRegisterWrites().clear();
|
||||||
|
|
||||||
for (int i=0; i<6; i++) {
|
for (int i=0; i<6; i++) {
|
||||||
fmOut[i]=0;
|
fmOut[i]=0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -465,6 +465,16 @@ void DivPlatformYM2610::acquire_lle(short** buf, size_t len) {
|
||||||
signed char subCycle=0;
|
signed char subCycle=0;
|
||||||
unsigned char subSubCycle=0;
|
unsigned char subSubCycle=0;
|
||||||
|
|
||||||
|
// AY -> OPN
|
||||||
|
ay->runDAC();
|
||||||
|
ay->runTFX(rate);
|
||||||
|
ay->flushWrites();
|
||||||
|
for (DivRegWrite& i: ay->getRegisterWrites()) {
|
||||||
|
if (i.addr>15) continue;
|
||||||
|
immWrite(i.addr&15,i.val);
|
||||||
|
}
|
||||||
|
ay->getRegisterWrites().clear();
|
||||||
|
|
||||||
for (int i=0; i<6; i++) {
|
for (int i=0; i<6; i++) {
|
||||||
fmOut[i]=0;
|
fmOut[i]=0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -533,6 +533,16 @@ void DivPlatformYM2610B::acquire_lle(short** buf, size_t len) {
|
||||||
signed char subCycle=0;
|
signed char subCycle=0;
|
||||||
unsigned char subSubCycle=0;
|
unsigned char subSubCycle=0;
|
||||||
|
|
||||||
|
// AY -> OPN
|
||||||
|
ay->runDAC();
|
||||||
|
ay->runTFX(rate);
|
||||||
|
ay->flushWrites();
|
||||||
|
for (DivRegWrite& i: ay->getRegisterWrites()) {
|
||||||
|
if (i.addr>15) continue;
|
||||||
|
immWrite(i.addr&15,i.val);
|
||||||
|
}
|
||||||
|
ay->getRegisterWrites().clear();
|
||||||
|
|
||||||
for (int i=0; i<6; i++) {
|
for (int i=0; i<6; i++) {
|
||||||
fmOut[i]=0;
|
fmOut[i]=0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue