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:
parent
1424e6ca6f
commit
e98beaee80
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue