Add VST3 option
This commit is contained in:
@@ -203,6 +203,7 @@ impl Plugin for AirFreshener {
|
||||
fn deactivate(&mut self) {}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "vst3"))]
|
||||
impl ClapPlugin for AirFreshener {
|
||||
const CLAP_ID: &'static str = "com.moist-plugins-gmbh.gain";
|
||||
const CLAP_DESCRIPTION: Option<&'static str> = Some("A smoothed gain parameter example plugin");
|
||||
@@ -215,4 +216,16 @@ impl ClapPlugin for AirFreshener {
|
||||
];
|
||||
}
|
||||
|
||||
#[cfg(feature = "vst3")]
|
||||
impl Vst3Plugin for AirFreshener {
|
||||
const VST3_CLASS_ID: [u8; 16] = *b"AirFreshener____";
|
||||
const VST3_SUBCATEGORIES: &'static [Vst3SubCategory] =
|
||||
&[Vst3SubCategory::Fx, Vst3SubCategory::Tools];
|
||||
}
|
||||
|
||||
|
||||
#[cfg(not(feature = "vst3"))]
|
||||
nih_export_clap!(AirFreshener);
|
||||
|
||||
#[cfg(feature = "vst3")]
|
||||
nih_export_vst3!(AirFreshener);
|
||||
|
||||
Reference in New Issue
Block a user