diff --git a/src/engine/platform/k053260.cpp b/src/engine/platform/k053260.cpp index f42a532dc..801325f86 100644 --- a/src/engine/platform/k053260.cpp +++ b/src/engine/platform/k053260.cpp @@ -159,6 +159,7 @@ void DivPlatformK053260::tick(bool sysTick) { } if (chan[i].audPos>0) { 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);