summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-13 11:55:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-13 11:55:15 +0000
commitbd92282cc4f2cd7559e0508222d7f932187b1cf0 (patch)
treed4e9055adad3f4f6ea0e49ea458cc3e3978253fa /libs/ardour/ardour/plugin.h
parent87d36b04f49a46f83a82ea50a3a148007a1a1f76 (diff)
flip default value of Plugin::presets_are_MIDI_programs and Plugin::current_preset_uses_general_midi
git-svn-id: svn://localhost/ardour2/branches/3.0@12697 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r--libs/ardour/ardour/plugin.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index f33fb9d1e5..15e5f4a9c5 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -189,14 +189,25 @@ class Plugin : public PBD::StatefulDestructible, public Latent
std::vector<PresetRecord> get_presets ();
- /* This is hard to return a correct value for because most plugin APIs
- do not specify plugin behaviour. However, if you want to force
- the display of plugin built-in preset names rather than MIDI program
- numbers, return true. If you want a generic description, return
- false.
+ /** @return true if this plugin will respond to MIDI program
+ * change messages by changing presets.
+ *
+ * This is hard to return a correct value for because most plugin APIs
+ * do not specify plugin behaviour. However, if you want to force
+ * the display of plugin built-in preset names rather than MIDI program
+ * numbers, return true. If you want a generic description, return
+ * false.
*/
- virtual bool presets_are_MIDI_programs() const { return true; }
- virtual bool current_preset_uses_general_midi() const { return true; }
+ virtual bool presets_are_MIDI_programs() const { return false; }
+
+ /** @return true if this plugin is General MIDI compliant, false
+ * otherwise.
+ *
+ * It is important to note that it is is almost impossible for a host
+ * (e.g. Ardour) to determine this for just about any plugin API
+ * known as of June 2012
+ */
+ virtual bool current_preset_uses_general_midi() const { return false; }
/** @return Last preset to be requested; the settings may have
* been changed since; find out with parameter_changed_since_last_preset.