Trait nih_plug::plugin::clap::ClapPlugin
source · pub trait ClapPlugin: Plugin {
const CLAP_ID: &'static str;
const CLAP_DESCRIPTION: Option<&'static str>;
const CLAP_MANUAL_URL: Option<&'static str>;
const CLAP_SUPPORT_URL: Option<&'static str>;
const CLAP_FEATURES: &'static [ClapFeature];
const CLAP_POLY_MODULATION_CONFIG: Option<PolyModulationConfig> = None;
// Provided method
fn remote_controls(&self, context: &mut impl RemoteControlsContext) { ... }
}
Expand description
Provides auxiliary metadata needed for a CLAP plugin.
Required Associated Constants§
sourceconst CLAP_ID: &'static str
const CLAP_ID: &'static str
A unique ID that identifies this particular plugin. This is usually in reverse domain name
notation, e.g. com.manufacturer.plugin-name
.
sourceconst CLAP_DESCRIPTION: Option<&'static str>
const CLAP_DESCRIPTION: Option<&'static str>
An optional short description for the plugin.
sourceconst CLAP_MANUAL_URL: Option<&'static str>
const CLAP_MANUAL_URL: Option<&'static str>
The URL to the plugin’s manual, if available.
sourceconst CLAP_SUPPORT_URL: Option<&'static str>
const CLAP_SUPPORT_URL: Option<&'static str>
The URL to the plugin’s support page, if available.
sourceconst CLAP_FEATURES: &'static [ClapFeature]
const CLAP_FEATURES: &'static [ClapFeature]
Keywords describing the plugin. The host may use this to classify the plugin in its plugin browser.
Provided Associated Constants§
sourceconst CLAP_POLY_MODULATION_CONFIG: Option<PolyModulationConfig> = None
const CLAP_POLY_MODULATION_CONFIG: Option<PolyModulationConfig> = None
If set, this informs the host about the plugin’s capabilities for polyphonic modulation.
Provided Methods§
sourcefn remote_controls(&self, context: &mut impl RemoteControlsContext)
fn remote_controls(&self, context: &mut impl RemoteControlsContext)
This function can be implemented to define plugin-specific remote control pages that the host can use to provide better hardware mapping for a plugin. See the linked extension for more information.