From e560838025be7c723839f5c2183544f349d899db Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 13 Jan 2023 00:15:37 -0500 Subject: [PATCH] OPL/OPLL: expand relative pitch range... poor Z80 --- src/engine/platform/opl.cpp | 2 +- src/engine/platform/opll.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/opl.cpp b/src/engine/platform/opl.cpp index 51f858519..4e798c6e5 100644 --- a/src/engine/platform/opl.cpp +++ b/src/engine/platform/opl.cpp @@ -343,7 +343,7 @@ void DivPlatformOPL::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,-131071,131071); } else { chan[i].pitch2=chan[i].std.pitch.val; } diff --git a/src/engine/platform/opll.cpp b/src/engine/platform/opll.cpp index 3556679ef..cba125c15 100644 --- a/src/engine/platform/opll.cpp +++ b/src/engine/platform/opll.cpp @@ -124,7 +124,7 @@ void DivPlatformOPLL::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; }