diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-19 23:11:01 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-19 23:11:01 +0000 |
commit | 5f4bdb233a53932986e07fca1cd6c87d22c2886f (patch) | |
tree | c9c980115453452dc21931d4337ab1b592f80d95 /libs/ardour/ardour/vst_plugin.h | |
parent | bb7dbe6d86e08ea0fedf12ce50ca3d395aa212a5 (diff) |
Clean up plugin preset handling a bit.
git-svn-id: svn://localhost/ardour2/branches/3.0@8301 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/vst_plugin.h')
-rw-r--r-- | libs/ardour/ardour/vst_plugin.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/ardour/vst_plugin.h b/libs/ardour/ardour/vst_plugin.h index e9a2c4abdf..83bf58c4ac 100644 --- a/libs/ardour/ardour/vst_plugin.h +++ b/libs/ardour/ardour/vst_plugin.h @@ -78,13 +78,11 @@ class VSTPlugin : public ARDOUR::Plugin bool parameter_is_input(uint32_t i) const { return true; } bool parameter_is_output(uint32_t i) const { return false; } - bool load_preset (const std::string& preset_label); - virtual std::vector<PresetRecord> get_presets (); + bool load_preset (PresetRecord); int first_user_preset_index () const; bool has_editor () const; - XMLNode& get_state(); int set_state (XMLNode const &, int); AEffect * plugin () const { return _plugin; } @@ -94,10 +92,14 @@ private: void do_remove_preset (std::string name); std::string do_save_preset (std::string name); - gchar* get_chunk (bool); + gchar* get_chunk (bool) const; int set_chunk (gchar const *, bool); XMLTree * presets_tree () const; std::string presets_file () const; + void find_presets (); + bool load_user_preset (PresetRecord); + bool load_plugin_preset (PresetRecord); + void add_state (XMLNode *) const; FSTHandle* handle; FST* _fst; |