Fix glitching on "events" (like loop markers) due to taking the processing offset...
authorSampo Savolainen <v2@iki.fi>
Tue, 29 Jul 2008 16:59:31 +0000 (16:59 +0000)
committerSampo Savolainen <v2@iki.fi>
Tue, 29 Jul 2008 16:59:31 +0000 (16:59 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3649 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ladspa_plugin.cc

index 6a27b8571a3e38b5b5101f52b10d401511922d21..9289899f5149918cd5886dd2a8e0fa7c427b5317 100644 (file)
@@ -523,14 +523,14 @@ LadspaPlugin::connect_and_run (vector<Sample*>& 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++;