[ardour-dev] 0.99.1 causing plugin crash?
fons.adriaensen at skynet.be
Sat Feb 11 04:47:00 PST 2006
On Sat, Feb 11, 2006 at 01:11:46AM +0100, fons adriaensen wrote:
> I mean that when the track is muted, one of the inputs is not
> cleared to zero, and the output from cycle N is fed back as the
> input in cycle N+1.
See libs/ardour/ladspa_plugin.cc, int LadspaPlugin::connect_and_run():
connect_port (port_index, bufs[min((uint32_t) in_index,nbufs)] + offset);
If min() does what I think it does, this should be:
connect_port (port_index, bufs[min((uint32_t) in_index,nbufs-1)] + offset);
Same for the output ports a few lines below.
This seems to solve the problem I reported.
More information about the Ardour-Dev