AY8930: increase pitch macro range to 65535

This commit is contained in:
tildearrow 2023-01-12 18:42:34 -05:00
parent 5df68c2ee8
commit 9af1ce84df
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ void DivPlatformAY8930::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,-65535,65535);
} else {
chan[i].pitch2=chan[i].std.pitch.val;
}