i think I got it
but there is a leak
This commit is contained in:
parent
f85c6913ce
commit
e80de1487e
|
@ -76,7 +76,7 @@ const char* DivPlatformOPLL::getEffectName(unsigned char effect) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const unsigned char cycleMapOPLL[18]={
|
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) {
|
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);
|
OPLL_Clock(&fm,o);
|
||||||
if (!isMuted[nextOut]) {
|
if (!isMuted[nextOut]) {
|
||||||
os+=(o[0]+o[1]);
|
os+=(o[0]+o[1]);
|
||||||
|
|
Loading…
Reference in a new issue