mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
help how does this work
This commit is contained in:
parent
539182e643
commit
4218440af1
1 changed files with 8 additions and 1 deletions
|
@ -75,6 +75,10 @@ const char* DivPlatformOPLL::getEffectName(unsigned char effect) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const unsigned char cycleMapOPLL[18]={
|
||||
1, 2, 0, 1, 2, 3, 4, 5, 3, 4, 5, 6, 7, 8, 6, 7, 8, 0
|
||||
};
|
||||
|
||||
void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
static int o[2];
|
||||
static int os;
|
||||
|
@ -99,8 +103,11 @@ void DivPlatformOPLL::acquire_nuked(short* bufL, short* bufR, size_t start, size
|
|||
}
|
||||
}
|
||||
|
||||
unsigned char nextOut=cycleMapOPLL[(fm.cycles+17)%18];
|
||||
OPLL_Clock(&fm,o);
|
||||
os+=(o[0]+o[1]);
|
||||
if (!isMuted[nextOut]) {
|
||||
os+=(o[0]+o[1]);
|
||||
}
|
||||
}
|
||||
os*=50;
|
||||
if (os<-32768) os=-32768;
|
||||
|
|
Loading…
Reference in a new issue