diff options
Diffstat (limited to 'libs/ardour/windows_vst_plugin.cc')
-rw-r--r-- | libs/ardour/windows_vst_plugin.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/windows_vst_plugin.cc b/libs/ardour/windows_vst_plugin.cc index e8afb67c1d..03170e0d04 100644 --- a/libs/ardour/windows_vst_plugin.cc +++ b/libs/ardour/windows_vst_plugin.cc @@ -28,10 +28,10 @@ using namespace std; using namespace ARDOUR; using namespace PBD; -WindowsVSTPlugin::WindowsVSTPlugin (AudioEngine& e, Session& session, VSTHandle* h) +WindowsVSTPlugin::WindowsVSTPlugin (AudioEngine& e, Session& session, VSTHandle* h, int unique_id) : VSTPlugin (e, session, h) { - Session::vst_current_loading_id = 0; // TODO + Session::vst_current_loading_id = unique_id; if ((_state = fst_instantiate (_handle, Session::vst_callback, this)) == 0) { throw failed_constructor(); } @@ -74,7 +74,7 @@ WindowsVSTPluginInfo::load (Session& session) if ((int) handle == -1) { error << string_compose(_("VST: cannot load module from \"%1\""), path) << endmsg; } else { - plugin.reset (new WindowsVSTPlugin (session.engine(), session, handle)); + plugin.reset (new WindowsVSTPlugin (session.engine(), session, handle, PBD::atoi(unique_id))); } } else { error << _("You asked ardour to not use any VST plugins") << endmsg; |