1
0
Fork 0

Add name, vendor, and other constants to plugins

This commit is contained in:
Robbert van der Helm 2022-01-26 18:14:13 +01:00
parent 1a619c474b
commit 031407754b
2 changed files with 10 additions and 0 deletions

View file

@ -61,6 +61,11 @@ impl Default for GainParams {
} }
impl Plugin for Gain { impl Plugin for Gain {
const NAME: &'static str = "Gain";
const VENDOR: &'static str = "Moist Plugins GmbH";
const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ";
const EMAIL: &'static str = "info@example.com";
const DEFAULT_NUM_INPUTS: u32 = 2; const DEFAULT_NUM_INPUTS: u32 = 2;
const DEFAULT_NUM_OUTPUTS: u32 = 2; const DEFAULT_NUM_OUTPUTS: u32 = 2;

View file

@ -37,6 +37,11 @@ use crate::params::Params;
/// - Suspension and tail processing. This will be handled soon in a similar way to how CLAP /// - Suspension and tail processing. This will be handled soon in a similar way to how CLAP
/// handnles it. /// handnles it.
pub trait Plugin: Default + Sync { pub trait Plugin: Default + Sync {
const NAME: &'static str;
const VENDOR: &'static str;
const URL: &'static str;
const EMAIL: &'static str;
/// The default number of inputs. Some hosts like, like Bitwig and Ardour, use the defaults /// The default number of inputs. Some hosts like, like Bitwig and Ardour, use the defaults
/// instead of setting up the busses properly. /// instead of setting up the busses properly.
const DEFAULT_NUM_INPUTS: u32; const DEFAULT_NUM_INPUTS: u32;