diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-02 00:26:57 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-02 00:26:57 +0100 |
commit | 3c7dea43af9d9e5b2563aee81ac5253fb2ee7858 (patch) | |
tree | 609ac23a111688e63a4612582fdb4dc02d8b66d4 /libs/ardour/audio_unit.cc | |
parent | d53af10c9261172c57dbc66b6b4d1143b37bbcae (diff) |
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.
Diffstat (limited to 'libs/ardour/audio_unit.cc')
-rw-r--r-- | libs/ardour/audio_unit.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 73fd6bf94b..e55d0c61c8 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -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 |