mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-06 23:51:21 +00:00
PCE: where is the low period cap
This commit is contained in:
parent
b074136094
commit
04849d2172
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ void DivPlatformPCE::tick(bool sysTick) {
|
|||
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<0) chan[i].freq=0;
|
||||
if (chan[i].freq>4095) chan[i].freq=4095;
|
||||
chWrite(i,0x02,chan[i].freq&0xff);
|
||||
chWrite(i,0x03,chan[i].freq>>8);
|
||||
|
|
Loading…
Reference in a new issue