diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-02 14:12:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-02 14:12:09 +0000 |
commit | ee725fbe915dfc81fb10a58045419566a917f206 (patch) | |
tree | e41c2d702e857b7d08fcb0c08e32e65b89e3bc9e /libs | |
parent | 7d30cc243f304468e8bf46d51c19e7c92757ab6d (diff) |
more attempted cleanup of AU preset declarations
git-svn-id: svn://localhost/ardour2/branches/3.0@9263 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/audio_unit.h | 4 | ||||
-rw-r--r-- | 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 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 |