mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Call activate() on plugins when setting state so that they are initialised correctly.
git-svn-id: svn://localhost/ardour2/branches/3.0@7562 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e8dc5539a0
commit
9a539fd347
2 changed files with 16 additions and 10 deletions
|
|
@ -232,11 +232,11 @@ PluginInsert::set_block_size (nframes_t nframes)
|
|||
void
|
||||
PluginInsert::activate ()
|
||||
{
|
||||
Processor::activate ();
|
||||
|
||||
for (Plugins::iterator i = _plugins.begin(); i != _plugins.end(); ++i) {
|
||||
(*i)->activate ();
|
||||
}
|
||||
|
||||
Processor::activate ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -150,10 +150,13 @@ Processor::set_state_2X (const XMLNode & node, int /*version*/)
|
|||
}
|
||||
|
||||
if ((prop = (*i)->property ("active")) != 0) {
|
||||
if (_active != string_is_affirmative (prop->value())) {
|
||||
_active = !_active;
|
||||
_pending_active = _active;
|
||||
ActiveChanged (); /* EMIT_SIGNAL */
|
||||
bool const a = string_is_affirmative (prop->value ());
|
||||
if (_active != a) {
|
||||
if (a) {
|
||||
activate ();
|
||||
} else {
|
||||
deactivate ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -232,10 +235,13 @@ Processor::set_state (const XMLNode& node, int version)
|
|||
}
|
||||
}
|
||||
|
||||
if (_active != string_is_affirmative (prop->value())) {
|
||||
_active = !_active;
|
||||
_pending_active = _active;
|
||||
ActiveChanged (); /* EMIT_SIGNAL */
|
||||
bool const a = string_is_affirmative (prop->value ());
|
||||
if (_active != a) {
|
||||
if (a) {
|
||||
activate ();
|
||||
} else {
|
||||
deactivate ();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue