- ChanMapping in_map, ChanMapping out_map,
- pframes_t nframes, framecnt_t offset)
-{
- Plugin::connect_and_run (bufs, in_map, out_map, nframes, offset);
+ samplepos_t start, samplepos_t end, double speed,
+ ChanMapping const& in_map, ChanMapping const& out_map,
+ pframes_t nframes, samplecnt_t offset)
+{
+ Plugin::connect_and_run(bufs, start, end, speed, in_map, out_map, nframes, offset);
+
+ if (pthread_mutex_trylock (&_state->state_lock)) {
+ /* by convention 'effSetChunk' should not be called while processing
+ * http://www.reaper.fm/sdk/vst/vst_ext.php
+ *
+ * All VSTs don't use in-place, PluginInsert::connect_and_run()
+ * does clear output buffers, so we can just return.
+ */
+ return 0;
+ }
+
+ _transport_sample = start;
+ _transport_speed = speed;