From f56e09606a741ab0408bf892c390c8202f026dc6 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 2 Apr 2023 15:49:12 +0900 Subject: [PATCH] More fixes --- src/engine/platform/k053260.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/k053260.cpp b/src/engine/platform/k053260.cpp index 801325f86..dd8364fa1 100644 --- a/src/engine/platform/k053260.cpp +++ b/src/engine/platform/k053260.cpp @@ -161,8 +161,8 @@ void DivPlatformK053260::tick(bool sysTick) { start=start+MIN(chan[i].audPos,s->length8); length=MAX(1,length-chan[i].audPos); } - start=MIN(start,getSampleMemCapacity()-31); - length=MIN(length,getSampleMemCapacity()-31); + start=MIN(start,getSampleMemCapacity()); + length=MIN(65535,MIN(length,getSampleMemCapacity())); rWrite(0x28,keyoff); // force keyoff first rWrite(0x2a,loopoff); chWrite(i,2,length&0xff);