From 5923351097a5ba46a43e9eeb716c207be3565511 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Tue, 29 Jul 2008 16:59:31 +0000 Subject: [PATCH 1/1] Fix glitching on "events" (like loop markers) due to taking the processing offset into account twice. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3649 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ladspa_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ladspa_plugin.cc b/libs/ardour/ladspa_plugin.cc index 6a27b8571a..9289899f51 100644 --- a/libs/ardour/ladspa_plugin.cc +++ b/libs/ardour/ladspa_plugin.cc @@ -523,14 +523,14 @@ LadspaPlugin::connect_and_run (vector& bufs, uint32_t nbufs, int32_t& i while (port_index < parameter_count()) { if (LADSPA_IS_PORT_AUDIO (port_descriptor(port_index))) { if (LADSPA_IS_PORT_INPUT (port_descriptor(port_index))) { - connect_port (port_index, bufs[min((uint32_t) in_index,nbufs - 1)] + offset); + connect_port (port_index, bufs[min((uint32_t) in_index,nbufs - 1)]); //cerr << this << ' ' << name() << " @ " << offset << " inport " << in_index << " = buf " // << min((uint32_t)in_index,nbufs) << " = " << &bufs[min((uint32_t)in_index,nbufs)][offset] << endl; in_index++; } else if (LADSPA_IS_PORT_OUTPUT (port_descriptor (port_index))) { - connect_port (port_index, bufs[min((uint32_t) out_index,nbufs - 1)] + offset); + connect_port (port_index, bufs[min((uint32_t) out_index,nbufs - 1)]); // cerr << this << ' ' << name() << " @ " << offset << " outport " << out_index << " = buf " // << min((uint32_t)out_index,nbufs) << " = " << &bufs[min((uint32_t)out_index,nbufs)][offset] << endl; out_index++; -- 2.30.2