From 9af1ce84df393e8a245152c919da9def76c4c56e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 12 Jan 2023 18:42:34 -0500 Subject: [PATCH] AY8930: increase pitch macro range to 65535 --- src/engine/platform/ay8930.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/ay8930.cpp b/src/engine/platform/ay8930.cpp index 4c728fb43..fb2584c98 100644 --- a/src/engine/platform/ay8930.cpp +++ b/src/engine/platform/ay8930.cpp @@ -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; }