DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::plugin::clap_backend::Plugin< P > Struct Template Reference

#include <DSParkClap.h>

Public Member Functions

 Plugin (const clap_host_t *h) noexcept
 
void applyNormalized (int index, double normalized) noexcept
 
void applyFactoryPresetIdx (int idx) noexcept
 
void refreshLatency () noexcept
 
void collectEvent (const clap_event_header_t *ev, uint32_t numSamples, BlockEvent *events, int &count) noexcept
 
void collectEvents (const clap_input_events_t *in, uint32_t numSamples, BlockEvent *events, int &count) noexcept
 
bool applyBlockEvent (const BlockEvent &ev, int blockStart) noexcept
 
void forwardTransport (const clap_event_transport_t *t) noexcept
 

Static Public Member Functions

static Pluginself (const clap_plugin_t *p) noexcept
 
static int indexOfParamId (uint32_t id) noexcept
 
static bool sInit (const clap_plugin_t *p) noexcept
 
static void sDestroy (const clap_plugin_t *p) noexcept
 
static bool sActivate (const clap_plugin_t *p, double sr, uint32_t, uint32_t maxFrames) noexcept
 
static void sDeactivate (const clap_plugin_t *) noexcept
 
static bool sStartProcessing (const clap_plugin_t *) noexcept
 
static void sStopProcessing (const clap_plugin_t *) noexcept
 
static void sReset (const clap_plugin_t *p) noexcept
 
static clap_process_status sProcess (const clap_plugin_t *p, const clap_process_t *process) noexcept
 
static const void * sGetExtension (const clap_plugin_t *, const char *id) noexcept
 
static void sOnMainThread (const clap_plugin_t *p) noexcept
 
static uint32_t sPortCount (const clap_plugin_t *, bool isInput) noexcept
 
static bool sPortGet (const clap_plugin_t *p, uint32_t index, bool isInput, clap_audio_port_info_t *info) noexcept
 
static uint32_t sConfigCount (const clap_plugin_t *) noexcept
 
static void fillConfig (clap_audio_ports_config_t *config, int width) noexcept
 
static bool sConfigGet (const clap_plugin_t *, uint32_t index, clap_audio_ports_config_t *config) noexcept
 
static bool sConfigSelect (const clap_plugin_t *p, clap_id configId) noexcept
 
static clap_id sConfigCurrent (const clap_plugin_t *p) noexcept
 
static bool sConfigInfoGet (const clap_plugin_t *p, clap_id configId, uint32_t portIndex, bool isInput, clap_audio_port_info_t *info) noexcept
 
static uint32_t sNotePortCount (const clap_plugin_t *, bool isInput) noexcept
 
static bool sNotePortGet (const clap_plugin_t *, uint32_t index, bool isInput, clap_note_port_info_t *info) noexcept
 
static bool sRenderHardRealtime (const clap_plugin_t *) noexcept
 
static bool sRenderSet (const clap_plugin_t *p, clap_plugin_render_mode mode) noexcept
 
static bool sPresetFromLocation (const clap_plugin_t *p, uint32_t locationKind, const char *location, const char *loadKey) noexcept
 
static uint32_t sParamCount (const clap_plugin_t *) noexcept
 
static bool sParamInfo (const clap_plugin_t *, uint32_t index, clap_param_info_t *info) noexcept
 
static bool sParamValue (const clap_plugin_t *p, clap_id id, double *out) noexcept
 
static bool sParamValueToText (const clap_plugin_t *, clap_id id, double value, char *out, uint32_t size) noexcept
 
static bool sParamTextToValue (const clap_plugin_t *, clap_id id, const char *text, double *out) noexcept
 
static void sParamFlush (const clap_plugin_t *p, const clap_input_events_t *in, const clap_output_events_t *out) noexcept
 
static bool sStateSave (const clap_plugin_t *p, const clap_ostream_t *stream) noexcept
 
static bool sStateLoad (const clap_plugin_t *p, const clap_istream_t *stream) noexcept
 
static uint32_t sLatencyGet (const clap_plugin_t *p) noexcept
 
static uint32_t sTailGet (const clap_plugin_t *p) noexcept
 
static const clap_plugin_descriptor_t * descriptor () noexcept
 
static const clap_plugin_t * create (const clap_host_t *host) noexcept
 

Public Attributes

clap_plugin_t plugin {}
 
const clap_host_t * host = nullptr
 
const clap_host_latency_t * hostLatency = nullptr
 
const clap_host_params_t * hostParams = nullptr
 
const clap_host_preset_load_t * hostPresetLoad = nullptr
 
user {}
 
double sampleRate = 48000.0
 
uint32_t maxFrames = 0
 
bool prepared = false
 
int cachedLatency = 0
 
int currentChannels = defaultChannelCount<P>()
 
bool offlineRender = false
 
std::atomic< bool > latencyDirty { false }
 
std::atomic< double > shadow [kNumParams==0 ? 1 :kNumParams] {}
 
std::atomic< bool > bypass { false }
 
std::atomic< int > currentProgram { 0 }
 
float bypassMix = 0.0f
 
std::vector< float > dryL
 
std::vector< float > dryR
 
std::vector< float > silence
 

Static Public Attributes

static constexpr size_t kNumParams = P::parameters.size()
 
static constexpr bool kIsInstrument
 
static constexpr int kNumPresets = factoryPresetCountOf<P>()
 
static const clap_plugin_audio_ports_t kAudioPorts = { &sPortCount, &sPortGet }
 
static const clap_plugin_audio_ports_config_t kPortsConfig
 
static const clap_plugin_audio_ports_config_info_t kPortsConfigInfo
 
static const clap_plugin_note_ports_t kNotePorts
 
static const clap_plugin_render_t kRender
 
static const clap_plugin_preset_load_t kPresetLoad
 
static const clap_plugin_params_t kParams
 
static const clap_plugin_state_t kState = { &sStateSave, &sStateLoad }
 
static const clap_plugin_latency_t kLatency = { &sLatencyGet }
 
static const clap_plugin_tail_t kTail = { &sTailGet }
 

Detailed Description

template<typename P>
struct dspark::plugin::clap_backend::Plugin< P >

Definition at line 73 of file DSParkClap.h.

Constructor & Destructor Documentation

◆ Plugin()

template<typename P >
dspark::plugin::clap_backend::Plugin< P >::Plugin ( const clap_host_t *  h)
inlineexplicitnoexcept

Definition at line 138 of file DSParkClap.h.

Member Function Documentation

◆ applyBlockEvent()

template<typename P >
bool dspark::plugin::clap_backend::Plugin< P >::applyBlockEvent ( const BlockEvent ev,
int  blockStart 
)
inlinenoexcept

Applies one event; blockStart rebases MIDI offsets onto the next processBlock call. Returns true when a user parameter changed.

Definition at line 310 of file DSParkClap.h.

◆ applyFactoryPresetIdx()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::applyFactoryPresetIdx ( int  idx)
inlinenoexcept

Applies one factory preset: every parameter, by normalized value.

Definition at line 168 of file DSParkClap.h.

◆ applyNormalized()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::applyNormalized ( int  index,
double  normalized 
)
inlinenoexcept

Definition at line 150 of file DSParkClap.h.

◆ collectEvent()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::collectEvent ( const clap_event_header_t *  ev,
uint32_t  numSamples,
BlockEvent events,
int &  count 
)
inlinenoexcept

Translates one CLAP event into the timestamped block stream. CLAP param events carry PLAIN values; raw MIDI covers what note events don't (pitch bend, CC, pressure).

Definition at line 202 of file DSParkClap.h.

◆ collectEvents()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::collectEvents ( const clap_input_events_t *  in,
uint32_t  numSamples,
BlockEvent events,
int &  count 
)
inlinenoexcept

Definition at line 299 of file DSParkClap.h.

◆ create()

template<typename P >
static const clap_plugin_t * dspark::plugin::clap_backend::Plugin< P >::create ( const clap_host_t *  host)
inlinestaticnoexcept

Definition at line 1381 of file DSParkClap.h.

◆ descriptor()

template<typename P >
static const clap_plugin_descriptor_t * dspark::plugin::clap_backend::Plugin< P >::descriptor ( )
inlinestaticnoexcept

Definition at line 1357 of file DSParkClap.h.

◆ fillConfig()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::fillConfig ( clap_audio_ports_config_t *  config,
int  width 
)
inlinestaticnoexcept

Definition at line 739 of file DSParkClap.h.

◆ forwardTransport()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::forwardTransport ( const clap_event_transport_t *  t)
inlinenoexcept

Forwards the per-block clap transport as a TransportInfo.

Definition at line 338 of file DSParkClap.h.

◆ indexOfParamId()

template<typename P >
static int dspark::plugin::clap_backend::Plugin< P >::indexOfParamId ( uint32_t  id)
inlinestaticnoexcept

Definition at line 160 of file DSParkClap.h.

◆ refreshLatency()

template<typename P >
void dspark::plugin::clap_backend::Plugin< P >::refreshLatency ( )
inlinenoexcept

Re-reads the plugin latency after parameter motion. The CLAP host must hear about it on the main thread, so a change only flags it and requests a callback; sOnMainThread delivers clap_host_latency.

Definition at line 184 of file DSParkClap.h.

◆ sActivate()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sActivate ( const clap_plugin_t *  p,
double  sr,
uint32_t  ,
uint32_t  maxFrames 
)
inlinestaticnoexcept

Definition at line 453 of file DSParkClap.h.

◆ sConfigCount()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sConfigCount ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 737 of file DSParkClap.h.

◆ sConfigCurrent()

template<typename P >
static clap_id dspark::plugin::clap_backend::Plugin< P >::sConfigCurrent ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 775 of file DSParkClap.h.

◆ sConfigGet()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sConfigGet ( const clap_plugin_t *  ,
uint32_t  index,
clap_audio_ports_config_t *  config 
)
inlinestaticnoexcept

Definition at line 755 of file DSParkClap.h.

◆ sConfigInfoGet()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sConfigInfoGet ( const clap_plugin_t *  p,
clap_id  configId,
uint32_t  portIndex,
bool  isInput,
clap_audio_port_info_t *  info 
)
inlinestaticnoexcept

Definition at line 780 of file DSParkClap.h.

◆ sConfigSelect()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sConfigSelect ( const clap_plugin_t *  p,
clap_id  configId 
)
inlinestaticnoexcept

Definition at line 763 of file DSParkClap.h.

◆ sDeactivate()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sDeactivate ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 478 of file DSParkClap.h.

◆ sDestroy()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sDestroy ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 451 of file DSParkClap.h.

◆ self()

template<typename P >
static Plugin * dspark::plugin::clap_backend::Plugin< P >::self ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 145 of file DSParkClap.h.

◆ sGetExtension()

template<typename P >
static const void * dspark::plugin::clap_backend::Plugin< P >::sGetExtension ( const clap_plugin_t *  ,
const char *  id 
)
inlinestaticnoexcept

Definition at line 647 of file DSParkClap.h.

◆ sInit()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sInit ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 435 of file DSParkClap.h.

◆ sLatencyGet()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sLatencyGet ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 1064 of file DSParkClap.h.

◆ sNotePortCount()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sNotePortCount ( const clap_plugin_t *  ,
bool  isInput 
)
inlinestaticnoexcept

Definition at line 816 of file DSParkClap.h.

◆ sNotePortGet()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sNotePortGet ( const clap_plugin_t *  ,
uint32_t  index,
bool  isInput,
clap_note_port_info_t *  info 
)
inlinestaticnoexcept

Definition at line 821 of file DSParkClap.h.

◆ sOnMainThread()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sOnMainThread ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 685 of file DSParkClap.h.

◆ sParamCount()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sParamCount ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 891 of file DSParkClap.h.

◆ sParamFlush()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sParamFlush ( const clap_plugin_t *  p,
const clap_input_events_t *  in,
const clap_output_events_t *  out 
)
inlinestaticnoexcept

Definition at line 982 of file DSParkClap.h.

◆ sParamInfo()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sParamInfo ( const clap_plugin_t *  ,
uint32_t  index,
clap_param_info_t *  info 
)
inlinestaticnoexcept

Definition at line 896 of file DSParkClap.h.

◆ sParamTextToValue()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sParamTextToValue ( const clap_plugin_t *  ,
clap_id  id,
const char *  text,
double *  out 
)
inlinestaticnoexcept

Definition at line 955 of file DSParkClap.h.

◆ sParamValue()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sParamValue ( const clap_plugin_t *  p,
clap_id  id,
double *  out 
)
inlinestaticnoexcept

Definition at line 923 of file DSParkClap.h.

◆ sParamValueToText()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sParamValueToText ( const clap_plugin_t *  ,
clap_id  id,
double  value,
char *  out,
uint32_t  size 
)
inlinestaticnoexcept

Definition at line 939 of file DSParkClap.h.

◆ sPortCount()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sPortCount ( const clap_plugin_t *  ,
bool  isInput 
)
inlinestaticnoexcept

Definition at line 696 of file DSParkClap.h.

◆ sPortGet()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sPortGet ( const clap_plugin_t *  p,
uint32_t  index,
bool  isInput,
clap_audio_port_info_t *  info 
)
inlinestaticnoexcept

Definition at line 706 of file DSParkClap.h.

◆ sPresetFromLocation()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sPresetFromLocation ( const clap_plugin_t *  p,
uint32_t  locationKind,
const char *  location,
const char *  loadKey 
)
inlinestaticnoexcept

Definition at line 856 of file DSParkClap.h.

◆ sProcess()

template<typename P >
static clap_process_status dspark::plugin::clap_backend::Plugin< P >::sProcess ( const clap_plugin_t *  p,
const clap_process_t *  process 
)
inlinestaticnoexcept

Definition at line 490 of file DSParkClap.h.

◆ sRenderHardRealtime()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sRenderHardRealtime ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 839 of file DSParkClap.h.

◆ sRenderSet()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sRenderSet ( const clap_plugin_t *  p,
clap_plugin_render_mode  mode 
)
inlinestaticnoexcept

Definition at line 841 of file DSParkClap.h.

◆ sReset()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sReset ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 482 of file DSParkClap.h.

◆ sStartProcessing()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sStartProcessing ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 479 of file DSParkClap.h.

◆ sStateLoad()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sStateLoad ( const clap_plugin_t *  p,
const clap_istream_t *  stream 
)
inlinestaticnoexcept

Definition at line 1029 of file DSParkClap.h.

◆ sStateSave()

template<typename P >
static bool dspark::plugin::clap_backend::Plugin< P >::sStateSave ( const clap_plugin_t *  p,
const clap_ostream_t *  stream 
)
inlinestaticnoexcept

Definition at line 1008 of file DSParkClap.h.

◆ sStopProcessing()

template<typename P >
static void dspark::plugin::clap_backend::Plugin< P >::sStopProcessing ( const clap_plugin_t *  )
inlinestaticnoexcept

Definition at line 480 of file DSParkClap.h.

◆ sTailGet()

template<typename P >
static uint32_t dspark::plugin::clap_backend::Plugin< P >::sTailGet ( const clap_plugin_t *  p)
inlinestaticnoexcept

Definition at line 1071 of file DSParkClap.h.

Member Data Documentation

◆ bypass

template<typename P >
std::atomic<bool> dspark::plugin::clap_backend::Plugin< P >::bypass { false }

Definition at line 106 of file DSParkClap.h.

◆ bypassMix

template<typename P >
float dspark::plugin::clap_backend::Plugin< P >::bypassMix = 0.0f

Definition at line 108 of file DSParkClap.h.

◆ cachedLatency

template<typename P >
int dspark::plugin::clap_backend::Plugin< P >::cachedLatency = 0

Definition at line 100 of file DSParkClap.h.

◆ currentChannels

template<typename P >
int dspark::plugin::clap_backend::Plugin< P >::currentChannels = defaultChannelCount<P>()

Definition at line 101 of file DSParkClap.h.

◆ currentProgram

template<typename P >
std::atomic<int> dspark::plugin::clap_backend::Plugin< P >::currentProgram { 0 }

Definition at line 107 of file DSParkClap.h.

◆ dryL

template<typename P >
std::vector<float> dspark::plugin::clap_backend::Plugin< P >::dryL

Definition at line 109 of file DSParkClap.h.

◆ dryR

template<typename P >
std::vector<float> dspark::plugin::clap_backend::Plugin< P >::dryR

Definition at line 109 of file DSParkClap.h.

◆ host

template<typename P >
const clap_host_t* dspark::plugin::clap_backend::Plugin< P >::host = nullptr

Definition at line 91 of file DSParkClap.h.

◆ hostLatency

template<typename P >
const clap_host_latency_t* dspark::plugin::clap_backend::Plugin< P >::hostLatency = nullptr

Definition at line 92 of file DSParkClap.h.

◆ hostParams

template<typename P >
const clap_host_params_t* dspark::plugin::clap_backend::Plugin< P >::hostParams = nullptr

Definition at line 93 of file DSParkClap.h.

◆ hostPresetLoad

template<typename P >
const clap_host_preset_load_t* dspark::plugin::clap_backend::Plugin< P >::hostPresetLoad = nullptr

Definition at line 94 of file DSParkClap.h.

◆ kAudioPorts

template<typename P >
const clap_plugin_audio_ports_t dspark::plugin::clap_backend::Plugin< P >::kAudioPorts = { &sPortCount, &sPortGet }
inlinestatic

Definition at line 733 of file DSParkClap.h.

◆ kIsInstrument

template<typename P >
constexpr bool dspark::plugin::clap_backend::Plugin< P >::kIsInstrument
staticconstexpr
Initial value:
=
P::descriptor.category == Category::Instrument
@ Instrument
Audio generator (MIDI in -> audio out, no audio input).

Definition at line 76 of file DSParkClap.h.

◆ kLatency

template<typename P >
const clap_plugin_latency_t dspark::plugin::clap_backend::Plugin< P >::kLatency = { &sLatencyGet }
inlinestatic

Definition at line 1069 of file DSParkClap.h.

◆ kNotePorts

template<typename P >
const clap_plugin_note_ports_t dspark::plugin::clap_backend::Plugin< P >::kNotePorts
inlinestatic
Initial value:
= {
}
static uint32_t sNotePortCount(const clap_plugin_t *, bool isInput) noexcept
Definition DSParkClap.h:816
static bool sNotePortGet(const clap_plugin_t *, uint32_t index, bool isInput, clap_note_port_info_t *info) noexcept
Definition DSParkClap.h:821

Definition at line 833 of file DSParkClap.h.

◆ kNumParams

template<typename P >
constexpr size_t dspark::plugin::clap_backend::Plugin< P >::kNumParams = P::parameters.size()
staticconstexpr

Definition at line 75 of file DSParkClap.h.

◆ kNumPresets

template<typename P >
constexpr int dspark::plugin::clap_backend::Plugin< P >::kNumPresets = factoryPresetCountOf<P>()
staticconstexpr

Definition at line 78 of file DSParkClap.h.

◆ kParams

template<typename P >
const clap_plugin_params_t dspark::plugin::clap_backend::Plugin< P >::kParams
inlinestatic
Initial value:
= {
}
static uint32_t sParamCount(const clap_plugin_t *) noexcept
Definition DSParkClap.h:891
static bool sParamValue(const clap_plugin_t *p, clap_id id, double *out) noexcept
Definition DSParkClap.h:923
static bool sParamTextToValue(const clap_plugin_t *, clap_id id, const char *text, double *out) noexcept
Definition DSParkClap.h:955
static void sParamFlush(const clap_plugin_t *p, const clap_input_events_t *in, const clap_output_events_t *out) noexcept
Definition DSParkClap.h:982
static bool sParamInfo(const clap_plugin_t *, uint32_t index, clap_param_info_t *info) noexcept
Definition DSParkClap.h:896
static bool sParamValueToText(const clap_plugin_t *, clap_id id, double value, char *out, uint32_t size) noexcept
Definition DSParkClap.h:939

Definition at line 1001 of file DSParkClap.h.

◆ kPortsConfig

template<typename P >
const clap_plugin_audio_ports_config_t dspark::plugin::clap_backend::Plugin< P >::kPortsConfig
inlinestatic
Initial value:
= {
}
static uint32_t sConfigCount(const clap_plugin_t *) noexcept
Definition DSParkClap.h:737
static bool sConfigSelect(const clap_plugin_t *p, clap_id configId) noexcept
Definition DSParkClap.h:763
static bool sConfigGet(const clap_plugin_t *, uint32_t index, clap_audio_ports_config_t *config) noexcept
Definition DSParkClap.h:755

Definition at line 771 of file DSParkClap.h.

◆ kPortsConfigInfo

template<typename P >
const clap_plugin_audio_ports_config_info_t dspark::plugin::clap_backend::Plugin< P >::kPortsConfigInfo
inlinestatic
Initial value:
= {
}
static bool sConfigInfoGet(const clap_plugin_t *p, clap_id configId, uint32_t portIndex, bool isInput, clap_audio_port_info_t *info) noexcept
Definition DSParkClap.h:780
static clap_id sConfigCurrent(const clap_plugin_t *p) noexcept
Definition DSParkClap.h:775

Definition at line 810 of file DSParkClap.h.

◆ kPresetLoad

template<typename P >
const clap_plugin_preset_load_t dspark::plugin::clap_backend::Plugin< P >::kPresetLoad
inlinestatic
Initial value:
= {
}
static bool sPresetFromLocation(const clap_plugin_t *p, uint32_t locationKind, const char *location, const char *loadKey) noexcept
Definition DSParkClap.h:856

Definition at line 885 of file DSParkClap.h.

◆ kRender

template<typename P >
const clap_plugin_render_t dspark::plugin::clap_backend::Plugin< P >::kRender
inlinestatic
Initial value:
= {
}
static bool sRenderSet(const clap_plugin_t *p, clap_plugin_render_mode mode) noexcept
Definition DSParkClap.h:841
static bool sRenderHardRealtime(const clap_plugin_t *) noexcept
Definition DSParkClap.h:839

Definition at line 850 of file DSParkClap.h.

◆ kState

template<typename P >
const clap_plugin_state_t dspark::plugin::clap_backend::Plugin< P >::kState = { &sStateSave, &sStateLoad }
inlinestatic

Definition at line 1060 of file DSParkClap.h.

◆ kTail

template<typename P >
const clap_plugin_tail_t dspark::plugin::clap_backend::Plugin< P >::kTail = { &sTailGet }
inlinestatic

Definition at line 1091 of file DSParkClap.h.

◆ latencyDirty

template<typename P >
std::atomic<bool> dspark::plugin::clap_backend::Plugin< P >::latencyDirty { false }

Definition at line 103 of file DSParkClap.h.

◆ maxFrames

template<typename P >
uint32_t dspark::plugin::clap_backend::Plugin< P >::maxFrames = 0

Definition at line 98 of file DSParkClap.h.

◆ offlineRender

template<typename P >
bool dspark::plugin::clap_backend::Plugin< P >::offlineRender = false

Definition at line 102 of file DSParkClap.h.

◆ plugin

template<typename P >
clap_plugin_t dspark::plugin::clap_backend::Plugin< P >::plugin {}

Definition at line 90 of file DSParkClap.h.

◆ prepared

template<typename P >
bool dspark::plugin::clap_backend::Plugin< P >::prepared = false

Definition at line 99 of file DSParkClap.h.

◆ sampleRate

template<typename P >
double dspark::plugin::clap_backend::Plugin< P >::sampleRate = 48000.0

Definition at line 97 of file DSParkClap.h.

◆ shadow

template<typename P >
std::atomic<double> dspark::plugin::clap_backend::Plugin< P >::shadow[kNumParams==0 ? 1 :kNumParams] {}

Definition at line 105 of file DSParkClap.h.

◆ silence

template<typename P >
std::vector<float> dspark::plugin::clap_backend::Plugin< P >::silence

Definition at line 110 of file DSParkClap.h.

◆ user

template<typename P >
P dspark::plugin::clap_backend::Plugin< P >::user {}

Definition at line 96 of file DSParkClap.h.


The documentation for this struct was generated from the following file: