Introduce a new enum for CLAP features

Based on the new CLAP 0.26 clap-features.h.
This commit is contained in:
Robbert van der Helm
2022-06-02 01:16:30 +02:00
parent ce9142186e
commit bfc472e49b
19 changed files with 174 additions and 27 deletions

View File

@@ -243,14 +243,14 @@ impl LoudnessWarWinner {
impl ClapPlugin for LoudnessWarWinner {
const CLAP_ID: &'static str = "nl.robbertvanderhelm.loudness-war-winner";
const CLAP_DESCRIPTION: &'static str = "Win the loudness war with ease";
const CLAP_FEATURES: &'static [&'static str] = &[
"audio-effect",
"stereo",
"mono",
"limiter",
"distortion",
"utility",
"pain",
const CLAP_FEATURES: &'static [ClapFeature] = &[
ClapFeature::AudioEffect,
ClapFeature::Stereo,
ClapFeature::Mono,
ClapFeature::Limiter,
ClapFeature::Distortion,
ClapFeature::Utility,
ClapFeature::Custom("pain"),
];
const CLAP_MANUAL_URL: &'static str = Self::URL;
const CLAP_SUPPORT_URL: &'static str = Self::URL;