breaking the limit, part 2

all dispatches adapted to 32768 samples.
sample limit unlocked.
testing is required.
This commit is contained in:
tildearrow 2025-07-27 20:16:59 -05:00
parent a4da787c1b
commit 387d9e0654
47 changed files with 430 additions and 168 deletions

View file

@ -1435,7 +1435,7 @@ size_t DivPlatformES5506::getSampleMemUsage(int index) {
bool DivPlatformES5506::isSampleLoaded(int index, int sample) {
if (index!=0) return false;
if (sample<0 || sample>255) return false;
if (sample<0 || sample>32767) return false;
return sampleLoaded[sample];
}
@ -1446,8 +1446,8 @@ const DivMemoryComposition* DivPlatformES5506::getMemCompo(int index) {
void DivPlatformES5506::renderSamples(int sysID) {
memset(sampleMem,0,getSampleMemCapacity());
memset(sampleOffES5506,0,256*sizeof(unsigned int));
memset(sampleLoaded,0,256*sizeof(bool));
memset(sampleOffES5506,0,32768*sizeof(unsigned int));
memset(sampleLoaded,0,32768*sizeof(bool));
memCompo=DivMemoryComposition();
memCompo.name="Sample Memory";
@ -1520,3 +1520,17 @@ void DivPlatformES5506::quit() {
delete oscBuf[i];
}
}
// initialization of important arrays
DivPlatformES5506::DivPlatformES5506():
DivDispatch(),
es550x_intf(),
es5506(*this) {
sampleOffES5506=new unsigned int[32768];
sampleLoaded=new bool[32768];
}
DivPlatformES5506::~DivPlatformES5506() {
delete[] sampleOffES5506;
delete[] sampleLoaded;
}