diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-06 23:49:40 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-07 00:13:56 +0100 |
commit | e1095310a8186bbd977534285df0ab29423d3aa3 (patch) | |
tree | eae28a2a01773762ae77bf7b12c1270df7d468cb /libs/ardour/ardour/vst_plugin.h | |
parent | 589c13c0eb9f6003a7e8cf923110459c897ea4b0 (diff) |
Rework VST initialization:
Set the AEffect* plugin pointer before calling effOpen.
effOpen may call back into the host (masterCallback) and invoke
actions which depend on _plugin (eg. to call back into the plugin again)
Diffstat (limited to 'libs/ardour/ardour/vst_plugin.h')
-rw-r--r-- | libs/ardour/ardour/vst_plugin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/vst_plugin.h b/libs/ardour/ardour/vst_plugin.h index 50cfc5e21a..b35ef6b25e 100644 --- a/libs/ardour/ardour/vst_plugin.h +++ b/libs/ardour/ardour/vst_plugin.h @@ -103,7 +103,8 @@ public: protected: void parameter_changed_externally (uint32_t which, float val); - void set_plugin (AEffect *); + virtual void open_plugin (); + void init_plugin (); gchar* get_chunk (bool) const; int set_chunk (gchar const *, bool); void add_state (XMLNode *) const; |