Replace VST3 category string with enum slice

I've been putting this off for a while, but now is finally the day. We
already did this for CLAP a while back. This is both simpler and less
error prone.
This commit is contained in:
Robbert van der Helm
2023-02-01 16:09:03 +01:00
parent 7fe339987a
commit d6184ea06e
23 changed files with 91 additions and 38 deletions

View File

@@ -340,7 +340,8 @@ impl ClapPlugin for SafetyLimiter {
impl Vst3Plugin for SafetyLimiter {
const VST3_CLASS_ID: [u8; 16] = *b"SafetyLimtrRvdH.";
const VST3_CATEGORIES: &'static str = "Fx|Tools";
const VST3_SUBCATEGORIES: &'static [Vst3SubCategory] =
&[Vst3SubCategory::Fx, Vst3SubCategory::Tools];
}
nih_export_clap!(SafetyLimiter);