1
0
Fork 0

Add a VST3 categories constant for plugins

This commit is contained in:
Robbert van der Helm 2022-01-26 19:49:22 +01:00
parent dc6db232ed
commit a13263051a
2 changed files with 7 additions and 0 deletions

View file

@ -66,6 +66,8 @@ impl Plugin for Gain {
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com";
const VST3_CATEGORIES: &'static str = "Fx|Dynamics";
const DEFAULT_NUM_INPUTS: u32 = 2;
const DEFAULT_NUM_OUTPUTS: u32 = 2;

View file

@ -42,6 +42,11 @@ pub trait Plugin: Default + Sync {
const URL: &'static str;
const EMAIL: &'static str;
/// One or more categories, separated by pipe characters (`|`), up to 31 characters. Anything
/// logner than that will be truncated. See the VST3 SDK for examples of common categories:
/// https://github.com/steinbergmedia/vst3_pluginterfaces/blob/2ad397ade5b51007860bedb3b01b8afd2c5f6fba/vst/ivstaudioprocessor.h#L49-L90
const VST3_CATEGORIES: &'static str;
/// The default number of inputs. Some hosts like, like Bitwig and Ardour, use the defaults
/// instead of setting up the busses properly.
const DEFAULT_NUM_INPUTS: u32;