rendered paste bodyvoid VstPlugin::processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames){ this->inputList.clear(); this->outputList.clear(); this->dummyBuffer->changeBuffer(outputs[0]); this->outputList.push_back(this->dummyBuffer); while(sampleFrames) { if(this->events.empty()) goto processRemainder; if(this->events.front()->Time - this->counter > sampleFrames) goto processRemainder; Event* e = this->events.front(); unsigned int remainder = e->Time - this->counter; this->events.pop(); this->safeguard->process(this->inputList, this->outputList, remainder); this->counter += remainder; this->dummyBuffer->changeBuffer(this->dummyBuffer->getBuffer() + remainder); sampleFrames -= remainder; e->execute(*this->plugin); delete e; } return;processRemainder: this->safeguard->process(this->inputList, this->outputList, sampleFrames); this->counter += sampleFrames;}