NES: fix slide up

fixes #208
This commit is contained in:
tildearrow 2022-03-14 00:26:06 -05:00
parent 394a440f3d
commit 5b2ec3ee87
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ void DivPlatformNES::tick() {
} else {
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true)-1;
if (chan[i].freq>2047) chan[i].freq=2047;
if (chan[i].freq<0) chan[i].freq=0;
}
if (chan[i].keyOn) {
//rWrite(16+i*5+1,((chan[i].duty&3)<<6)|(63-(ins->gb.soundLen&63)));