Signed-off-by: falkTX <falktx@falktx.com>pull/321/head
| @@ -54,6 +54,19 @@ public: | |||||
| return d_cconst('d', 'C', 'a', 'i'); | return d_cconst('d', 'C', 'a', 'i'); | ||||
| } | } | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupMono; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| void initParameter(uint32_t index, Parameter& parameter) | void initParameter(uint32_t index, Parameter& parameter) | ||||
| { | { | ||||
| // unused | // unused | ||||
| @@ -40,7 +40,8 @@ endif # HAVE_LIBLO | |||||
| endif # MACOS_OR_WINDOWS | endif # MACOS_OR_WINDOWS | ||||
| TARGETS += lv2_sep | TARGETS += lv2_sep | ||||
| TARGETS += vst | |||||
| TARGETS += vst2 | |||||
| TARGETS += vst3 | |||||
| endif # HAVE_CAIRO | endif # HAVE_CAIRO | ||||
| @@ -99,6 +99,19 @@ protected: | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupStereo; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -98,6 +98,19 @@ protected: | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupMono; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -34,7 +34,8 @@ else | |||||
| TARGETS += lv2_dsp | TARGETS += lv2_dsp | ||||
| endif | endif | ||||
| TARGETS += vst | |||||
| TARGETS += vst2 | |||||
| TARGETS += vst3 | |||||
| all: $(TARGETS) | all: $(TARGETS) | ||||
| @@ -103,6 +103,19 @@ protected: | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupStereo; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -108,6 +108,19 @@ protected: | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupMono; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -150,6 +150,19 @@ protected: | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupMono; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -110,6 +110,19 @@ The plugin will be treated as an effect, but it will not change the host audio." | |||||
| kPortGroupBottom | kPortGroupBottom | ||||
| }; | }; | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupStereo; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Initialize the parameter @a index. | Initialize the parameter @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||
| @@ -100,11 +100,20 @@ protected: | |||||
| } | } | ||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init and Internal data, unused in this plugin */ | |||||
| * Init */ | |||||
| void initParameter(uint32_t, Parameter&) override {} | |||||
| float getParameterValue(uint32_t) const override { return 0.0f;} | |||||
| void setParameterValue(uint32_t, float) override {} | |||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupMono; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Audio/MIDI Processing */ | * Audio/MIDI Processing */ | ||||
| @@ -104,6 +104,19 @@ The plugin will be treated as an effect, but it will not change the host audio." | |||||
| /* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
| * Init */ | * Init */ | ||||
| /** | |||||
| Initialize the audio port @a index.@n | |||||
| This function will be called once, shortly after the plugin is created. | |||||
| */ | |||||
| void initAudioPort(bool input, uint32_t index, AudioPort& port) override | |||||
| { | |||||
| // treat meter audio ports as stereo | |||||
| port.groupId = kPortGroupStereo; | |||||
| // everything else is as default | |||||
| Plugin::initAudioPort(input, index, port); | |||||
| } | |||||
| /** | /** | ||||
| Set the name of the program @a index. | Set the name of the program @a index. | ||||
| This function will be called once, shortly after the plugin is created. | This function will be called once, shortly after the plugin is created. | ||||