mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Add a ClapPlugin trait
Just like the Vst3Plugin trait
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
extern crate nih_plug;
|
||||
|
||||
use nih_plug::{
|
||||
formatters, util, Buffer, BufferConfig, BusConfig, Plugin, ProcessContext, ProcessStatus,
|
||||
Vst3Plugin,
|
||||
formatters, util, Buffer, BufferConfig, BusConfig, ClapPlugin, Plugin, ProcessContext,
|
||||
ProcessStatus, Vst3Plugin,
|
||||
};
|
||||
use nih_plug::{BoolParam, FloatParam, Params, Range, Smoother, SmoothingStyle};
|
||||
use std::f32::consts;
|
||||
@@ -176,6 +176,8 @@ impl Plugin for Sine {
|
||||
}
|
||||
}
|
||||
|
||||
impl ClapPlugin for Sine {}
|
||||
|
||||
impl Vst3Plugin for Sine {
|
||||
const VST3_CLASS_ID: [u8; 16] = *b"SineMoistestPlug";
|
||||
const VST3_CATEGORIES: &'static str = "Instrument|Synth|Tools";
|
||||
|
||||
Reference in New Issue
Block a user