i think I got it

but there is a leak
This commit is contained in:
tildearrow 2022-02-28 23:31:49 -05:00
parent f85c6913ce
commit e80de1487e

View file

@ -76,7 +76,7 @@ const char* DivPlatformOPLL::getEffectName(unsigned char effect) {
}
const unsigned char cycleMapOPLL[18]={
1, 2, 0, 1, 2, 3, 4, 5, 3, 4, 5, 6, 7, 8, 6, 7, 8, 0
5, 6, 7, 8, 6, 7, 8, 0, 1, 2, 0, 1, 2, 3, 4, 5, 3, 4
};
void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size_t len) {
@ -103,7 +103,7 @@ void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size
}
}
unsigned char nextOut=cycleMapOPLL[(fm.cycles+17)%18];
unsigned char nextOut=cycleMapOPLL[fm.cycles];
OPLL_Clock(&fm,o);
if (!isMuted[nextOut]) {
os+=(o[0]+o[1]);