diff options
author | Robin Gareus <robin@gareus.org> | 2012-08-28 15:42:40 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-08-28 15:42:40 +0000 |
commit | 322f1c7d0de3825e673cee1819adf22d8302cd19 (patch) | |
tree | e52cac4a3b4dff12644be2565b8c4a11da4bd1fe /libs/ardour/ardour/lv2_plugin.h | |
parent | 198efb82bc32ab8664a9b7e4e92b1eb3572e5529 (diff) |
LV2: amend previous commit, respect replicated plugin instances
When a plugin is replicated (eg. mono plugin on a stereo-track),
configure_io() is only called for the first instance.
The 2nd instance will not have dedicated buffers but re-use copies
of the first instance. Should the 2nd instance use a LV2 worker-thread or
local communication ports they can not be shared with the first instance.
-> this patch allocates Atom-buffers for each instance.
PS. this still needs more work; there is only one UI instance for
all plugin instances. messages from the UI should go to all
instances.
git-svn-id: svn://localhost/ardour2/branches/3.0@13148 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/lv2_plugin.h')
-rw-r--r-- | libs/ardour/ardour/lv2_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h index 622ab305bd..6b51cb3eae 100644 --- a/libs/ardour/ardour/lv2_plugin.h +++ b/libs/ardour/ardour/lv2_plugin.h @@ -89,7 +89,6 @@ class LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee void cleanup (); int set_block_size (pframes_t /*nframes*/) { return 0; } - bool configure_io (ChanCount in, ChanCount out); int connect_and_run (BufferSet& bufs, ChanMapping in, ChanMapping out, @@ -242,6 +241,7 @@ class LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee const char* path); void init (const void* c_plugin, framecnt_t rate); + void allocate_atom_event_buffers (); void run (pframes_t nsamples); void latency_compute_run (); |