reference player work

memory usage cap, garbage collection and sinc interpolation
also ability to set playback position to a negative value
This commit is contained in:
tildearrow 2025-10-27 14:24:16 -05:00
parent f77aafb44d
commit 7a7a871198
7 changed files with 254 additions and 56 deletions

View file

@ -3248,6 +3248,10 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
}
if (curFilePlayer!=NULL) {
curFilePlayer->mix(filePlayerBuf,outChans,size);
} else {
for (int i=0; i<DIV_MAX_OUTPUTS; i++) {
memset(filePlayerBuf[i],0,size*sizeof(float));
}
}
// process metronome