diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-07-14 11:57:30 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-07-14 16:35:07 +0200 |
commit | 53b6cbafc8923cb6e305a7e868b502069ece5177 (patch) | |
tree | a834a789438b4599a818456b98685a69599b1005 /pluginvst.h | |
parent | 1be0af889aaf6d3baba1cad14914a5771c66839c (diff) |
Introduce VST plugin information.
Diffstat (limited to 'pluginvst.h')
-rw-r--r-- | pluginvst.h | 30 |
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, |