diff --git a/libs/ardour/ardour/audio_unit.h b/libs/ardour/ardour/audio_unit.h index abbfdbea3d..74edd4a3c2 100644 --- a/libs/ardour/ardour/audio_unit.h +++ b/libs/ardour/ardour/audio_unit.h @@ -97,8 +97,8 @@ class AUPlugin : public ARDOUR::Plugin int set_state(const XMLNode& node, int); - bool save_preset (std::string name); - bool load_preset (const std::string& preset_label); + PresetRecord save_preset (std::string name); + bool load_preset (PresetRecord); std::string current_preset() const; bool has_editor () const; diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index babbfe20af..4d712e13f1 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -1658,8 +1658,10 @@ AUPlugin::set_state(const XMLNode& node, int version) } bool -AUPlugin::load_preset (const string& preset_label) +AUPlugin::load_preset (PluginRecord r) { + Plugin::load_preset (r); + #ifdef AU_STATE_SUPPORT bool ret = false; CFPropertyListRef propertyList; @@ -1719,7 +1721,7 @@ AUPlugin::load_preset (const string& preset_label) #endif } -bool +PresetRecord AUPlugin::save_preset (string preset_name) { #ifdef AU_STATE_SUPPORT