Offset correction for VST plugins when running split buffers

git-svn-id: svn://localhost/trunk/ardour2@94 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2005-11-14 16:33:28 +00:00
parent 1424e6ca6f
commit e98beaee80
1 changed files with 2 additions and 2 deletions

View File

@ -391,12 +391,12 @@ VSTPlugin::connect_and_run (vector<Sample*>& bufs, uint32_t maxbuf, int32_t& in_
int32_t i;
for (i = 0; i < (int32_t) _plugin->numInputs; ++i) {
ins[i] = bufs[min((uint32_t) in_index,maxbuf)];
ins[i] = bufs[min((uint32_t) in_index,maxbuf)] + offset;
in_index++;
}
for (i = 0; i < (int32_t) _plugin->numOutputs; ++i) {
outs[i] = bufs[min((uint32_t) out_index,maxbuf)];
outs[i] = bufs[min((uint32_t) out_index,maxbuf)] + offset;
/* unbelievably, several VST plugins still rely on Cubase
behaviour and do not silence the buffer in processReplacing