Set rate and blocksize for multi-instance VSTs
authorRobin Gareus <robin@gareus.org>
Fri, 13 Jan 2017 10:29:10 +0000 (11:29 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 13 Jan 2017 10:29:30 +0000 (11:29 +0100)
libs/ardour/lxvst_plugin.cc
libs/ardour/mac_vst_plugin.cc
libs/ardour/windows_vst_plugin.cc

index 91ae75788340989ac4ea1ca4c15205fc38abcb4b..b71f9fa37820feab1b899adcf4124c1a9bce599b 100644 (file)
@@ -63,6 +63,8 @@ LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other)
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
+
+       set_plugin (_state->plugin);
 }
 
 LXVSTPlugin::~LXVSTPlugin ()
 }
 
 LXVSTPlugin::~LXVSTPlugin ()
index 2cb7301ce800116699daf653a57344929c4dfb18..8fc87aaeec3c27565e61a9ff9ca9a38d8eef6a43 100644 (file)
@@ -63,6 +63,8 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other)
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
+
+       set_plugin (_state->plugin);
 }
 
 MacVSTPlugin::~MacVSTPlugin ()
 }
 
 MacVSTPlugin::~MacVSTPlugin ()
index 256d7f89a8bb13ee2fbf17bc4cbb0c81fbef1b55..53bfee05e8239be36c6b8a83d4977385aae018ce 100644 (file)
@@ -62,6 +62,8 @@ WindowsVSTPlugin::WindowsVSTPlugin (const WindowsVSTPlugin &other)
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
        other.add_state (root);
        set_state (*root, Stateful::loading_state_version);
        delete root;
+
+       set_plugin (_state->plugin);
 }
 
 WindowsVSTPlugin::~WindowsVSTPlugin ()
 }
 
 WindowsVSTPlugin::~WindowsVSTPlugin ()