summaryrefslogtreecommitdiff
path: root/pluginvst.h
diff options
context:
space:
mode:
Diffstat (limited to 'pluginvst.h')
-rw-r--r--pluginvst.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/pluginvst.h b/pluginvst.h
index 2ae746a..e65a2ef 100644
--- a/pluginvst.h
+++ b/pluginvst.h
@@ -50,9 +50,6 @@ public:
//! Get current free-wheel mode.
bool getFreeWheel() const override;
- //! This method is called by the host when the free-wheel mode changes.
- virtual void onFreeWheelChange(bool freewheel) override = 0;
-
//! Call this to get current samplerate.
float getSamplerate() override;
@@ -109,9 +106,36 @@ public:
virtual std::size_t getNumberOfMidiOutputs() override = 0;
+
+ // VST plugin information
+
//! Get unique plugin id.
std::string getId() override = 0;
+ // Functions used to set plugin information for VST
+
+ //! Returns value which is then used by getEffectName
+ std::string effectName() override = 0;
+ //! Returns value which is then used by getVendorString
+ std::string vendorString() override = 0;
+ //! Returns value which is then used by getProductString
+ std::string productString() override = 0;
+ //! Returns value which is then used by getPlugCategory
+ PluginCategory pluginCategory() override = 0;
+
+ //! Fill \e text with a string identifying the effect
+ bool getEffectName(char* name);
+
+ //! Fill \e text with a string identifying the vendor
+ bool getVendorString(char* text);
+
+ //! Fill \e text with a string identifying the product name
+ bool getProductString(char* text);
+
+ //! Specify a category that fits the plug (#VstPlugCategory)
+ virtual VstPlugCategory getPlugCategory() override;
+
+
virtual void process(std::size_t pos,
const std::vector<MidiEvent>& input_events,
std::vector<MidiEvent>& output_events,