summaryrefslogtreecommitdiff
path: root/libs/ardour/windows_vst_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-23 17:52:49 +0100
committerRobin Gareus <robin@gareus.org>2014-02-23 17:52:49 +0100
commitfac93f7a82833b094c36164d733bb3c352a7223e (patch)
treece43504d28a50b8ba58ef664ddc82a98ddf82ea0 /libs/ardour/windows_vst_plugin.cc
parentbcf6c764625ab4b98e486977ef477deb4f1d64c4 (diff)
preparations for VST Shell plugins (mostly mixbus code forward port)
Diffstat (limited to 'libs/ardour/windows_vst_plugin.cc')
-rw-r--r--libs/ardour/windows_vst_plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/windows_vst_plugin.cc b/libs/ardour/windows_vst_plugin.cc
index 9fe9ba0049..e8afb67c1d 100644
--- a/libs/ardour/windows_vst_plugin.cc
+++ b/libs/ardour/windows_vst_plugin.cc
@@ -31,9 +31,11 @@ using namespace PBD;
WindowsVSTPlugin::WindowsVSTPlugin (AudioEngine& e, Session& session, VSTHandle* h)
: VSTPlugin (e, session, h)
{
+ Session::vst_current_loading_id = 0; // TODO
if ((_state = fst_instantiate (_handle, Session::vst_callback, this)) == 0) {
throw failed_constructor();
}
+ Session::vst_current_loading_id = 0;
set_plugin (_state->plugin);
}
@@ -43,9 +45,11 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other)
{
_handle = other._handle;
+ Session::vst_current_loading_id = PBD::atoi(other.unique_id());
if ((_state = fst_instantiate (_handle, Session::vst_callback, this)) == 0) {
throw failed_constructor();
}
+ Session::vst_current_loading_id = 0;
_plugin = _state->plugin;
}