diff --git a/src/engine/dispatchContainer.cpp b/src/engine/dispatchContainer.cpp index f6d9a10693..4a5fafab55 100644 --- a/src/engine/dispatchContainer.cpp +++ b/src/engine/dispatchContainer.cpp @@ -379,9 +379,9 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do case DIV_SYSTEM_YM2610_CSM: dispatch=new DivPlatformYM2610Ext; if (isRender) { - ((DivPlatformYM2610Ext*)dispatch)->setCombo(eng->getConfInt("opnCoreRender",1)==1); + ((DivPlatformYM2610Ext*)dispatch)->setCombo(eng->getConfInt("opnbCoreRender",1)); } else { - ((DivPlatformYM2610Ext*)dispatch)->setCombo(eng->getConfInt("opnCore",1)==1); + ((DivPlatformYM2610Ext*)dispatch)->setCombo(eng->getConfInt("opnbCore",1)); } ((DivPlatformYM2610Ext*)dispatch)->setCSM(1); break; @@ -405,9 +405,9 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do case DIV_SYSTEM_YM2610B_CSM: dispatch=new DivPlatformYM2610BExt; if (isRender) { - ((DivPlatformYM2610BExt*)dispatch)->setCombo(eng->getConfInt("opnCoreRender",1)==1); + ((DivPlatformYM2610BExt*)dispatch)->setCombo(eng->getConfInt("opnbCoreRender",1)); } else { - ((DivPlatformYM2610BExt*)dispatch)->setCombo(eng->getConfInt("opnCore",1)==1); + ((DivPlatformYM2610BExt*)dispatch)->setCombo(eng->getConfInt("opnbCore",1)); } ((DivPlatformYM2610BExt*)dispatch)->setCSM(1); break; @@ -456,9 +456,9 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do case DIV_SYSTEM_YM2203_CSM: dispatch=new DivPlatformYM2203Ext; if (isRender) { - ((DivPlatformYM2203Ext*)dispatch)->setCombo(eng->getConfInt("opnCoreRender",1)==1); + ((DivPlatformYM2203Ext*)dispatch)->setCombo(eng->getConfInt("opn1CoreRender",1)); } else { - ((DivPlatformYM2203Ext*)dispatch)->setCombo(eng->getConfInt("opnCore",1)==1); + ((DivPlatformYM2203Ext*)dispatch)->setCombo(eng->getConfInt("opn1Core",1)); } ((DivPlatformYM2203Ext*)dispatch)->setCSM(1); break; diff --git a/src/engine/platform/ym2203.cpp b/src/engine/platform/ym2203.cpp index 6d6a65673c..0f02848d4b 100644 --- a/src/engine/platform/ym2203.cpp +++ b/src/engine/platform/ym2203.cpp @@ -291,7 +291,7 @@ void DivPlatformYM2203::acquire_ymfm(short** buf, size_t len) { } for (int i=(3+isCSM); i<(6+isCSM); i++) { - oscBuf[i]->data[oscBuf[i]->needle++]=fmout.data[i-2+isCSM]<<1; + oscBuf[i]->data[oscBuf[i]->needle++]=fmout.data[i-(2+isCSM)]<<1; } } }