dear tildearrow are you drunk or what?
This commit is contained in:
parent
b24c572632
commit
647f2f96b0
4 changed files with 14 additions and 11 deletions
|
|
@ -4017,7 +4017,7 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop) {
|
|||
}
|
||||
}
|
||||
if (nextToTouch>=0) {
|
||||
double waitTime=totalWait+(loopTimer[nextToTouch]*(44100.0/MIN(1,loopFreq[nextToTouch])));
|
||||
double waitTime=totalWait+(loopTimer[nextToTouch]*(44100.0/MAX(1,loopFreq[nextToTouch])));
|
||||
if (waitTime>0) {
|
||||
w->writeC(0x61);
|
||||
w->writeS(waitTime);
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ void DivPlatformGenesis::tick() {
|
|||
off=8363.0/(double)s->centerRate;
|
||||
}
|
||||
}
|
||||
dacRate=(1280000*1.25*off)/MIN(1,chan[i].baseFreq);
|
||||
dacRate=(1280000*1.25*off)/MAX(1,chan[i].baseFreq);
|
||||
if (dacRate<1) dacRate=1;
|
||||
if (dumpWrites) addWrite(0xffff0001,1280000/dacRate);
|
||||
}
|
||||
|
|
@ -515,7 +515,7 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
|
|||
}
|
||||
dacPos=0;
|
||||
dacPeriod=0;
|
||||
dacRate=1280000/MIN(1,parent->song.sample[dacSample]->rate);
|
||||
dacRate=1280000/MAX(1,parent->song.sample[dacSample]->rate);
|
||||
if (dumpWrites) addWrite(0xffff0001,parent->song.sample[dacSample]->rate);
|
||||
chan[c.chan].furnaceDac=false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ void DivPlatformPCE::tick() {
|
|||
off=8363.0/(double)s->centerRate;
|
||||
}
|
||||
}
|
||||
chan[i].dacRate=((double)chipClock/2)/MIN(1,off*chan[i].freq);
|
||||
chan[i].dacRate=((double)chipClock/2)/MAX(1,off*chan[i].freq);
|
||||
if (dumpWrites) addWrite(0xffff0001+(i<<8),chan[i].dacRate);
|
||||
}
|
||||
if (chan[i].freq>4095) chan[i].freq=4095;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue