the final piece of f-num/block work

This commit is contained in:
tildearrow 2022-04-24 14:40:07 -05:00
parent dd9bb8327a
commit 23be8d9336
6 changed files with 41 additions and 13 deletions

View file

@ -149,14 +149,22 @@ int DivPlatformGenesisExt::dispatch(DivCommand c) {
// what the heck!
if (!opChan[ch].portaPause) {
if ((newFreq&0x7ff)>1288) {
opChan[ch].portaPauseFreq=(644)|((newFreq+0x800)&0xf800);
opChan[ch].portaPause=true;
break;
if (parent->song.fbPortaPause) {
opChan[ch].portaPauseFreq=(644)|((newFreq+0x800)&0xf800);
opChan[ch].portaPause=true;
break;
} else {
newFreq=(newFreq>>1)|((newFreq+0x800)&0xf800);
}
}
if ((newFreq&0x7ff)<644) {
opChan[ch].portaPauseFreq=newFreq=(1287)|((newFreq-0x800)&0xf800);
opChan[ch].portaPause=true;
break;
if (parent->song.fbPortaPause) {
opChan[ch].portaPauseFreq=newFreq=(1287)|((newFreq-0x800)&0xf800);
opChan[ch].portaPause=true;
break;
} else {
newFreq=(newFreq<<1)|((newFreq-0x800)&0xf800);
}
}
}
opChan[ch].portaPause=false;