Add VST3 option

This commit is contained in:
Ebu
2025-12-04 12:11:29 +01:00
parent a9bd69e461
commit 74428b272d
10 changed files with 119 additions and 67 deletions

View File

@@ -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);