mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
genesis: fix delay bug
This commit is contained in:
parent
8478481466
commit
055b4f9c26
1 changed files with 20 additions and 23 deletions
|
@ -32,6 +32,8 @@ void DivPlatformGenesis::acquire(int& l, int& r) {
|
|||
}
|
||||
}
|
||||
|
||||
os[0]=0; os[1]=0;
|
||||
for (int i=0; i<6; i++) {
|
||||
if (!writes.empty() && --delay<0) {
|
||||
delay=0;
|
||||
QueuedWrite& w=writes.front();
|
||||
|
@ -49,14 +51,10 @@ void DivPlatformGenesis::acquire(int& l, int& r) {
|
|||
}
|
||||
}
|
||||
}
|
||||
os[0]=0; os[1]=0;
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
|
||||
OPN2_Clock(&fm,o); os[0]+=o[0]; os[1]+=o[1];
|
||||
//OPN2_Write(&fm,0,0);
|
||||
}
|
||||
|
||||
psgClocks+=223722;
|
||||
while (psgClocks>=rate) {
|
||||
|
@ -70,7 +68,6 @@ void DivPlatformGenesis::acquire(int& l, int& r) {
|
|||
}
|
||||
|
||||
void DivPlatformGenesis::tick() {
|
||||
printf("writes remain: %ld\n",writes.size());
|
||||
for (int i=0; i<6; i++) {
|
||||
if (i==2 && extMode) continue;
|
||||
if (chan[i].keyOn || chan[i].keyOff) {
|
||||
|
|
Loading…
Reference in a new issue