|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Native CLAP backend: the same plugin class, one more macro. More...
#include "../DSParkPlugin.h"#include "clap/clap.h"#include <algorithm>#include <atomic>#include <cstdint>#include <cstdlib>#include <cstring>#include <new>#include <vector>
Go to the source code of this file.
Classes | |
| struct | dspark::plugin::clap_backend::Plugin< P > |
| struct | dspark::plugin::clap_backend::Factory< P > |
| struct | dspark::plugin::clap_backend::Factory< P >::ProviderState |
Namespaces | |
| namespace | dspark |
| Main namespace for the DSPark framework. | |
| namespace | dspark::plugin |
| namespace | dspark::plugin::clap_backend |
Macros | |
| #define | DSPARK_PLUGIN_CLAP_INCLUDED 1 |
| #define | DSPARK_CLAP_PLUGIN(PluginClass) |
| Declares the CLAP module entry for one plugin class. May coexist with DSPARK_VST3_PLUGIN in the same translation unit: the resulting binary is a valid .vst3 AND a valid .clap at the same time. | |
Variables | |
| constexpr uint32_t | dspark::plugin::clap_backend::kBypassParamId = 0x42595053u |
| constexpr int | dspark::plugin::clap_backend::kBypassRampSamples = 256 |
Native CLAP backend: the same plugin class, one more macro.
CLAP (https://cleveraudio.org, MIT, vendored under plugin/clap/clap/) is a plain-C plugin ABI - the cleanest of the desktop formats. This backend exposes the exact same user class as the VST3 backend:
// ship it as .vst3 AND as .clap
Implementation notes:
hasEditor = true, the gui extension embeds the WebView editor (otherwise hosts show their generic editor). Editor edits reach the host as gesture begin/end plus CLAP_EVENT_PARAM_VALUE through a lock-free queue drained by process()/flush(), so automation recording works. Definition in file DSParkClap.h.
| #define DSPARK_CLAP_PLUGIN | ( | PluginClass | ) |
Declares the CLAP module entry for one plugin class. May coexist with DSPARK_VST3_PLUGIN in the same translation unit: the resulting binary is a valid .vst3 AND a valid .clap at the same time.
Definition at line 1574 of file DSParkClap.h.
| #define DSPARK_PLUGIN_CLAP_INCLUDED 1 |
Definition at line 53 of file DSParkClap.h.