mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 06:25:16 +00:00
Namco 163: why does it overflow
This commit is contained in:
parent
addbe4c8b5
commit
5399c6eb7c
1 changed files with 3 additions and 1 deletions
|
@ -376,7 +376,9 @@ int DivPlatformN163::dispatch(DivCommand c) {
|
|||
chan[c.chan].freqChanged=true;
|
||||
break;
|
||||
case DIV_CMD_NOTE_PORTA: {
|
||||
int destFreq=NOTE_FREQUENCY(c.value2);
|
||||
double destFreqD=NOTE_FREQUENCY(c.value2);
|
||||
if (destFreqD>2000000000.0) destFreqD=2000000000.0;
|
||||
int destFreq=destFreqD;
|
||||
bool return2=false;
|
||||
if (destFreq>chan[c.chan].baseFreq) {
|
||||
chan[c.chan].baseFreq+=c.value*((parent->song.linearPitch==2)?1:16);
|
||||
|
|
Loading…
Reference in a new issue