Towards fixing AU preset invalidation
This is a step in the right direction: first load the preset and only if preset-loading was successful mark it as loaded. This still does not properly unset "parameter_changed_since_last_preset". AU signals "kAudioUnitEvent_ParameterValueChange" later in the event-loop.
This commit is contained in:
parent
d53af10c92
commit
3c7dea43af
@ -2170,8 +2170,6 @@ AUPlugin::set_state(const XMLNode& node, int version)
|
||||
bool
|
||||
AUPlugin::load_preset (PresetRecord r)
|
||||
{
|
||||
Plugin::load_preset (r);
|
||||
|
||||
bool ret = false;
|
||||
CFPropertyListRef propertyList;
|
||||
Glib::ustring path;
|
||||
@ -2218,7 +2216,7 @@ AUPlugin::load_preset (PresetRecord r)
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
return ret && Plugin::load_preset (r);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user