mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add a VST3 categories constant for plugins
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user