projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab1242c
)
copy plugin state to all instances when instantiating.
author
Robin Gareus
<robin@gareus.org>
Sun, 17 Apr 2016 14:09:25 +0000
(16:09 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 17 Apr 2016 14:09:25 +0000
(16:09 +0200)
libs/ardour/plugin_insert.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/plugin_insert.cc
b/libs/ardour/plugin_insert.cc
index 740fa5250640f5d8ab7f1aaeda49728ed2bc8178..19c661287fba38d1e25dd9a070c90f999eb31a48 100644
(file)
--- a/
libs/ardour/plugin_insert.cc
+++ b/
libs/ardour/plugin_insert.cc
@@
-117,12
+117,14
@@
PluginInsert::set_count (uint32_t num)
for (uint32_t n = 0; n < diff; ++n) {
boost::shared_ptr<Plugin> p = plugin_factory (_plugins[0]);
add_plugin (p);
- if (active ()) {
- p->activate ();
- }
if (require_state) {
- /* XXX do something */
+ XMLNode& state = _plugins[0]->get_state ();
+ p->set_state (state, Stateful::loading_state_version);
+ }
+
+ if (active ()) {
+ p->activate ();
}
}
PluginConfigChanged (); /* EMIT SIGNAL */