summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/vst_plugin.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-07 02:56:11 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-07 02:56:11 +0000
commit40c162d6096f9bb338b602fb7845234133285411 (patch)
tree04780c7e06b050191fac93ed778ec330e842361e /libs/ardour/ardour/vst_plugin.h
parent25a702798e7fc2f3875208ceb67e0b6a7dfb1715 (diff)
Move RDF-based preset stuff into LadspaPlugin, to make way for a set of evil hacks to make VST chunk-based presets work (for some values of `work').
May fix #3577. git-svn-id: svn://localhost/ardour2/branches/3.0@8202 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/vst_plugin.h')
-rw-r--r--libs/ardour/ardour/vst_plugin.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/libs/ardour/ardour/vst_plugin.h b/libs/ardour/ardour/vst_plugin.h
index a72b625288..332872e9bd 100644
--- a/libs/ardour/ardour/vst_plugin.h
+++ b/libs/ardour/ardour/vst_plugin.h
@@ -80,19 +80,25 @@ class VSTPlugin : public ARDOUR::Plugin
bool parameter_is_output(uint32_t i) const { return false; }
bool load_preset (const std::string& preset_label);
- bool save_preset (std::string name);
- void remove_preset (std::string name);
+ virtual std::vector<PresetRecord> get_presets ();
+ int first_user_preset_index () const;
bool has_editor () const;
XMLNode& get_state();
int set_state (XMLNode const &, int);
- AEffect* plugin() const { return _plugin; }
- FST* fst() const { return _fst; }
+ AEffect * plugin () const { return _plugin; }
+ FST * fst () const { return _fst; }
+private:
- private:
+ void do_remove_preset (std::string name);
+ std::string do_save_preset (std::string name);
+ gchar* get_chunk (bool);
+ int set_chunk (gchar const *, bool);
+ XMLTree * presets_tree () const;
+
FSTHandle* handle;
FST* _fst;
AEffect* _plugin;