From bdf3505ce814aa016d5153255a24f11a7a2332f2 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 2 Apr 2011 14:12:09 +0000 Subject: [PATCH] more attempted cleanup of AU preset declarations git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@9263 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/audio_unit.h | 4 ++-- libs/ardour/audio_unit.cc | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/ardour/ardour/audio_unit.h b/libs/ardour/ardour/audio_unit.h index abbfdbea3..74edd4a3c 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 babbfe20a..4d712e13f 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 -- 2.11.4.GIT