13
0

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:
Robin Gareus 2018-12-02 00:26:57 +01:00
parent d53af10c92
commit 3c7dea43af
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2170,8 +2170,6 @@ AUPlugin::set_state(const XMLNode& node, int version)
bool bool
AUPlugin::load_preset (PresetRecord r) AUPlugin::load_preset (PresetRecord r)
{ {
Plugin::load_preset (r);
bool ret = false; bool ret = false;
CFPropertyListRef propertyList; CFPropertyListRef propertyList;
Glib::ustring path; Glib::ustring path;
@ -2218,7 +2216,7 @@ AUPlugin::load_preset (PresetRecord r)
} }
} }
return ret; return ret && Plugin::load_preset (r);
} }
void void