Add name, vendor, and other constants to plugins
This commit is contained in:
parent
1a619c474b
commit
031407754b
|
@ -61,6 +61,11 @@ impl Default for GainParams {
|
|||
}
|
||||
|
||||
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_OUTPUTS: u32 = 2;
|
||||
|
||||
|
|
|
@ -37,6 +37,11 @@ use crate::params::Params;
|
|||
/// - Suspension and tail processing. This will be handled soon in a similar way to how CLAP
|
||||
/// handnles it.
|
||||
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
|
||||
/// instead of setting up the busses properly.
|
||||
const DEFAULT_NUM_INPUTS: u32;
|
||||
|
|
Loading…
Reference in a new issue