don't handle a buffer of size 0

This commit is contained in:
tildearrow 2023-06-24 17:45:43 -05:00
parent ba0d6903f6
commit 598e8ddf03
1 changed files with 4 additions and 0 deletions

View File

@ -1691,6 +1691,10 @@ void DivEngine::runMidiTime(int totalCycles) {
}
void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsigned int size) {
if (!size) {
logW("nextBuf called with size 0!");
return;
}
lastLoopPos=-1;
if (out!=NULL) {