1
0
Fork 0

Add a version string constant

This commit is contained in:
Robbert van der Helm 2022-01-26 22:20:15 +01:00
parent 0a67c8e5f4
commit 9046cfbe3a
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -42,6 +42,9 @@ pub trait Plugin: Default + Sync {
const URL: &'static str; const URL: &'static str;
const EMAIL: &'static str; const EMAIL: &'static str;
/// Semver compatible version string (e.g. `0.0.1`). Hosts likely won't do anything with this,
/// but just in case they do this should only contain decimals values and dots.
const VERSION: &'static str;
/// One or more categories, separated by pipe characters (`|`), up to 127 characters. Anything /// One or more categories, separated by pipe characters (`|`), up to 127 characters. Anything
/// logner than that will be truncated. See the VST3 SDK for examples of common categories: /// 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 /// https://github.com/steinbergmedia/vst3_pluginterfaces/blob/2ad397ade5b51007860bedb3b01b8afd2c5f6fba/vst/ivstaudioprocessor.h#L49-L90