From 9c05badfefbd5a212b95b85d69dd8f8168e134b7 Mon Sep 17 00:00:00 2001 From: cam900 Date: Thu, 15 Dec 2022 20:13:15 +0900 Subject: [PATCH] GA20 --- src/engine/platform/ga20.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/ga20.cpp b/src/engine/platform/ga20.cpp index 91b03d596..506eb76da 100644 --- a/src/engine/platform/ga20.cpp +++ b/src/engine/platform/ga20.cpp @@ -436,14 +436,14 @@ void DivPlatformGA20::renderSamples(int sysID) { for (int j=0; jdata8[j]))^0x80; - sampleMem[memPos++]=CLAMP(val,1,255); + sampleMem[memPos++]=CLAMP(val,0x01,0xff); } // write end of sample marker memset(&sampleMem[memPos],0x00,1); memPos+=1; } if ((memPos+MAX(actualLength,0))>=(getSampleMemCapacity()-1)) { - logW("out of K007232 PCM memory for sample %d!",i); + logW("out of GA20 PCM memory for sample %d!",i); break; } else { sampleLoaded[i]=true;