diff --git a/Cargo.lock b/Cargo.lock index 83d21d07..1a0e7b83 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -469,8 +469,9 @@ checksum = "17cc5e6b5ab06331c33589842070416baa137e8b0eb912b008cfd4a78ada7919" [[package]] name = "clap-sys" -version = "0.26.0" -source = "git+https://github.com/robbert-vdh/clap-sys.git?branch=feature/clap-0.26#7a5980ba205a306cc31ebc83a1d89a29ab81cd56" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a8aa914ef6a42441b5ef7884eef20c6d38bd5b24c3c9eba865b08bf3353bc11" [[package]] name = "clipboard-win" diff --git a/Cargo.toml b/Cargo.toml index ecbcda78..f9fc2808 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,8 +66,7 @@ atomic_float = "0.1" atomic_refcell = "0.1" bitflags = "1.3" cfg-if = "1.0" -# For CLAP 0.26 -clap-sys = { git = "https://github.com/robbert-vdh/clap-sys.git", branch = "feature/clap-0.26" } +clap-sys = "0.1" crossbeam = "0.8" lazy_static = "1.4" log = { version = "0.4", features = ["std", "release_max_level_info"] } diff --git a/src/wrapper/clap/features.rs b/src/wrapper/clap/features.rs index 833f85c2..e2767fdc 100644 --- a/src/wrapper/clap/features.rs +++ b/src/wrapper/clap/features.rs @@ -9,6 +9,10 @@ pub enum ClapFeature { AudioEffect, NoteEffect, Analyzer, + Synthesizer, + Sampler, + Drum, + DrumMachine, Filter, Phaser, Equalizer, @@ -37,7 +41,6 @@ pub enum ClapFeature { Stereo, Surround, Ambisonic, - Win32DpiAware, /// A non-predefined feature. Hosts may display this among its plugin categories. Custom(&'static str), } @@ -49,6 +52,10 @@ impl ClapFeature { ClapFeature::AudioEffect => "audio-effect", ClapFeature::NoteEffect => "note-effect", ClapFeature::Analyzer => "analyzer", + ClapFeature::Synthesizer => "synthesizer", + ClapFeature::Sampler => "sampler", + ClapFeature::Drum => "drum", + ClapFeature::DrumMachine => "drum-machine", ClapFeature::Filter => "filter", ClapFeature::Phaser => "phaser", ClapFeature::Equalizer => "equalizer", @@ -77,7 +84,6 @@ impl ClapFeature { ClapFeature::Stereo => "stereo", ClapFeature::Surround => "surround", ClapFeature::Ambisonic => "ambisonic", - ClapFeature::Win32DpiAware => "win32-dpi-aware", ClapFeature::Custom(s) => s, } }