1
0
Fork 0

Merge branch 'feature/clap-next'

Now that Bitwig Studio 4.3 beta 5 has been release. NIH-plug now
supports CLAP 1.0 on the master branch.
This commit is contained in:
Robbert van der Helm 2022-06-10 15:52:32 +02:00
commit ac0d415b29
3 changed files with 12 additions and 6 deletions

5
Cargo.lock generated
View file

@ -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"

View file

@ -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"] }

View file

@ -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,
}
}