OPN: increase range of pitch2

This commit is contained in:
tildearrow 2022-12-28 14:47:50 -05:00
parent 99f2901ed6
commit 2c182334d7
10 changed files with 10 additions and 10 deletions

View file

@ -436,7 +436,7 @@ void DivPlatformYM2610::tick(bool sysTick) {
if (chan[i].std.pitch.had) {
if (chan[i].std.pitch.mode) {
chan[i].pitch2+=chan[i].std.pitch.val;
CLAMP_VAR(chan[i].pitch2,-32768,32767);
CLAMP_VAR(chan[i].pitch2,-1048576,1048575);
} else {
chan[i].pitch2=chan[i].std.pitch.val;
}