Fix again

This commit is contained in:
cam900 2022-12-15 16:46:15 +09:00
parent f7e9c4e45c
commit 5de95e6565
1 changed files with 1 additions and 2 deletions

View File

@ -534,9 +534,8 @@ void DivPlatformK007232::renderSamples(int sysID) {
memset(&sampleMem[memPos],0xc0,1);
memPos+=1;
}
if (actualLength<length) {
if ((memPos+actualLength)>=(getSampleMemCapacity()-1)) {
logW("out of K007232 PCM memory for sample %d!",i);
sampleLoaded[i]=false;
break;
} else {
sampleLoaded[i]=true;