DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::plugin::vst3::Plugin< P > Struct Template Reference

#include <DSParkVst3.h>

Collaboration diagram for dspark::plugin::vst3::Plugin< P >:

Public Member Functions

 Plugin () noexcept
 
void * lensPtr (int lens) noexcept
 
Steinberg_tresult query (const Steinberg_TUID iid, void **obj) noexcept
 
Steinberg_uint32 addRefImpl () noexcept
 
Steinberg_uint32 releaseImpl () noexcept
 
void applyNormalized (int index, double normalized) noexcept
 
bool applyFromUi (int index, double normalized) noexcept
 
bool drainPending () noexcept
 
void applyAllShadows () noexcept
 
void applyFactoryPresetIdx (int idx, bool fromUi=false) noexcept
 
 ~Plugin ()
 
void refreshLatency (Steinberg_int32 extraFlags=0) noexcept
 
bool onUiThread () const noexcept
 
void requestRestart (Steinberg_int32 flags) noexcept
 
void deliverPendingRestart () noexcept
 
void attachToHost (Steinberg_FUnknown *context) noexcept
 
void detachFromHost () noexcept
 
void collectParameterChanges (Steinberg_Vst_IParameterChanges *changes, Steinberg_int32 numSamples, BlockEventList &events) noexcept
 
void collectInputEvents (Steinberg_Vst_IEventList *list, Steinberg_int32 numSamples, BlockEventList &events) noexcept
 
bool applyBlockEvent (const BlockEvent &ev, int blockStart, bool &programChanged) noexcept
 
void clearHistory () noexcept
 
void blendBypass (float *const *out, float *const *dry, int nCh, int outStart, int dryStart, int length) noexcept
 
void forwardTransport (const Steinberg_Vst_ProcessContext *ctx) noexcept
 

Static Public Member Functions

static Plugin * fromLens (void *iface, int lens) noexcept
 
template<int Lens>
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sQuery (void *self_, const Steinberg_TUID iid, void **obj)
 
template<int Lens>
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sAddRef (void *self_)
 
template<int Lens>
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sRelease (void *self_)
 
static int indexOfParamId (Steinberg_Vst_ParamID id) noexcept
 
static int programIndexOf (Steinberg_Vst_ParamValue normalized) noexcept
 
static void onUiTick (void *self) noexcept
 
static int midiProxySlot (uint32_t id) noexcept
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sInitialize (void *self_, Steinberg_FUnknown *context)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sTerminate (void *self_)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetControllerClassId (void *, Steinberg_TUID)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetIoMode (void *, Steinberg_Vst_IoMode)
 
static Steinberg_int32 numInputBuses () noexcept
 
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetBusCount (void *, Steinberg_Vst_MediaType type, Steinberg_Vst_BusDirection dir)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetBusInfo (void *self_, Steinberg_Vst_MediaType type, Steinberg_Vst_BusDirection dir, Steinberg_int32 index, Steinberg_Vst_BusInfo *bus)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetRoutingInfo (void *, Steinberg_Vst_RoutingInfo *, Steinberg_Vst_RoutingInfo *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sActivateBus (void *, Steinberg_Vst_MediaType, Steinberg_Vst_BusDirection, Steinberg_int32, Steinberg_TBool)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetActive (void *self_, Steinberg_TBool state)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sComponentSetState (void *self_, Steinberg_IBStream *state)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sComponentGetState (void *self_, Steinberg_IBStream *state)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetBusArrangements (void *self_, Steinberg_Vst_SpeakerArrangement *inputs, Steinberg_int32 numIns, Steinberg_Vst_SpeakerArrangement *outputs, Steinberg_int32 numOuts)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetBusArrangement (void *self_, Steinberg_Vst_BusDirection dir, Steinberg_int32 index, Steinberg_Vst_SpeakerArrangement *arr)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCanProcessSampleSize (void *, Steinberg_int32 size)
 
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetLatencySamples (void *self_)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetupProcessing (void *self_, Steinberg_Vst_ProcessSetup *setup)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetProcessing (void *self_, Steinberg_TBool state)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sProcess (void *self_, Steinberg_Vst_ProcessData *data)
 
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetTailSamples (void *self_)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlInitialize (void *self_, Steinberg_FUnknown *context)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlTerminate (void *self_)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetComponentState (void *self_, Steinberg_IBStream *state)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlSetState (void *, Steinberg_IBStream *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlGetState (void *, Steinberg_IBStream *)
 
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetParameterCount (void *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParameterInfo (void *self_, Steinberg_int32 index, Steinberg_Vst_ParameterInfo *info)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParamStringByValue (void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue normalized, Steinberg_Vst_String128 out)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParamValueByString (void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_TChar *string, Steinberg_Vst_ParamValue *normalized)
 
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sNormalizedParamToPlain (void *, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue normalized)
 
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sPlainParamToNormalized (void *, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue plain)
 
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sGetParamNormalized (void *self_, Steinberg_Vst_ParamID id)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetParamNormalized (void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue value)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetComponentHandler (void *self_, Steinberg_Vst_IComponentHandler *handler)
 
static Steinberg_IPlugView *SMTG_STDMETHODCALLTYPE sCreateView (void *self_, Steinberg_FIDString name)
 
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetProcessContextRequirements (void *)
 
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetUnitCount (void *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetUnitInfo (void *, Steinberg_int32 unitIndex, Steinberg_Vst_UnitInfo *info)
 
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetProgramListCount (void *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramListInfo (void *, Steinberg_int32 listIndex, Steinberg_Vst_ProgramListInfo *info)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramName (void *, Steinberg_Vst_ProgramListID listId, Steinberg_int32 programIndex, Steinberg_Vst_String128 name)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramInfo (void *, Steinberg_Vst_ProgramListID, Steinberg_int32, Steinberg_Vst_CString, Steinberg_Vst_String128)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sHasProgramPitchNames (void *, Steinberg_Vst_ProgramListID, Steinberg_int32)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramPitchName (void *, Steinberg_Vst_ProgramListID, Steinberg_int32, Steinberg_int16, Steinberg_Vst_String128)
 
static Steinberg_Vst_UnitID SMTG_STDMETHODCALLTYPE sGetSelectedUnit (void *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSelectUnit (void *, Steinberg_Vst_UnitID unitId)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetUnitByBus (void *, Steinberg_Vst_MediaType, Steinberg_Vst_BusDirection, Steinberg_int32, Steinberg_int32, Steinberg_Vst_UnitID *unitId)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetUnitProgramData (void *, Steinberg_int32, Steinberg_int32, struct Steinberg_IBStream *)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetMidiControllerAssignment (void *, Steinberg_int32 busIndex, Steinberg_int16 channel, Steinberg_Vst_CtrlNumber midiControllerNumber, Steinberg_Vst_ParamID *id)
 
static int offeredExpression (Steinberg_int32 index) noexcept
 
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetNoteExpressionCount (void *, Steinberg_int32 busIndex, Steinberg_int16 channel)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionInfo (void *, Steinberg_int32 busIndex, Steinberg_int16 channel, Steinberg_int32 index, struct Steinberg_Vst_NoteExpressionTypeInfo *info)
 
static bool offersExpression (Steinberg_Vst_NoteExpressionTypeID id) noexcept
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionStringByValue (void *, Steinberg_int32 busIndex, Steinberg_int16, Steinberg_Vst_NoteExpressionTypeID id, Steinberg_Vst_NoteExpressionValue valueNormalized, Steinberg_Vst_String128 string)
 
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionValueByString (void *, Steinberg_int32 busIndex, Steinberg_int16, Steinberg_Vst_NoteExpressionTypeID id, const Steinberg_Vst_TChar *string, Steinberg_Vst_NoteExpressionValue *valueNormalized)
 

Public Attributes

const Steinberg_Vst_IComponentVtbl * componentVtbl
 
const Steinberg_Vst_IAudioProcessorVtbl * processorVtbl
 
const Steinberg_Vst_IEditControllerVtbl * controllerVtbl
 
const Steinberg_Vst_IProcessContextRequirementsVtbl * contextReqVtbl
 
const Steinberg_Vst_IUnitInfoVtbl * unitVtbl
 
const Steinberg_Vst_IMidiMappingVtbl * midiMapVtbl
 
const Steinberg_Vst_INoteExpressionControllerVtbl * noteExprVtbl
 
std::atomic< Steinberg_uint32 > refs { 1 }
 
P user {}
 
Steinberg_Vst_ProcessSetup setup { 0, 0, 0, 48000.0 }
 
bool prepared = false
 
std::atomic< int > cachedLatency { 0 }
 
int currentChannels = defaultChannelCount<P>()
 
std::atomic< double > shadow [kNumParams==0 ? 1 :kNumParams] {}
 
std::atomic< double > midiProxyShadow [HasMidi< P > ? kNumMidiProxies :1] {}
 
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
 
DryDelay dryDelay
 
EditorSizeMemory< P > editorMemory
 
std::atomic< Steinberg_Vst_IComponentHandler * > handler { nullptr }
 
std::atomic< std::thread::id > uiThread { std::this_thread::get_id() }
 
std::atomic< Steinberg_int32 > pendingRestart { 0 }
 
UiTicker uiTicker
 
std::atomic< bool > processing { false }
 
PendingParams< kNumParams > pending
 
BlockEventList blockEvents
 
NoteIdMap noteIds
 
void * liveView = nullptr
 
void(* resizeLiveView )(void *view) noexcept = nullptr
 

Static Public Attributes

static constexpr size_t kNumParams = P::parameters.size()
 
static constexpr bool kIsInstrument
 
static constexpr int kNumPresets = factoryPresetCountOf<P>()
 
static constexpr uint32_t kVst3Expressions
 
static const Steinberg_Vst_IComponentVtbl kComponentVtbl
 
static const Steinberg_Vst_IAudioProcessorVtbl kProcessorVtbl
 
static constexpr Steinberg_int32 kBypassIndex
 
static constexpr Steinberg_int32 kProgramIndex
 
static constexpr Steinberg_int32 kFirstProxyIndex
 
static const Steinberg_Vst_IEditControllerVtbl kControllerVtbl
 
static const Steinberg_Vst_IProcessContextRequirementsVtbl kContextReqVtbl
 
static const Steinberg_Vst_IUnitInfoVtbl kUnitVtbl
 
static const Steinberg_Vst_IMidiMappingVtbl kMidiMapVtbl
 
static const Steinberg_Vst_INoteExpressionControllerVtbl kNoteExprVtbl
 

Detailed Description

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

Definition at line 605 of file DSParkVst3.h.

Constructor & Destructor Documentation

◆ Plugin()

template<typename P >
dspark::plugin::vst3::Plugin< P >::Plugin ( )
inlinenoexcept

Definition at line 693 of file DSParkVst3.h.

◆ ~Plugin()

template<typename P >
dspark::plugin::vst3::Plugin< P >::~Plugin ( )
inline

Definition at line 876 of file DSParkVst3.h.

Member Function Documentation

◆ addRefImpl()

template<typename P >
Steinberg_uint32 dspark::plugin::vst3::Plugin< P >::addRefImpl ( )
inlinenoexcept

Definition at line 752 of file DSParkVst3.h.

◆ applyAllShadows()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::applyAllShadows ( )
inlinenoexcept

Definition at line 829 of file DSParkVst3.h.

◆ applyBlockEvent()

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

Applies one event; blockStart rebases MIDI offsets onto the next processBlock call. Returns true when a user parameter changed (the latency re-check trigger) - program changes report through programChanged instead.

Definition at line 1137 of file DSParkVst3.h.

◆ applyFactoryPresetIdx()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::applyFactoryPresetIdx ( int  idx,
bool  fromUi = false 
)
inlinenoexcept

Applies one factory preset: every parameter, by normalized value - from the audio thread (a program-change automation point) or from the UI thread (fromUi).

Definition at line 841 of file DSParkVst3.h.

◆ applyFromUi()

template<typename P >
bool dspark::plugin::vst3::Plugin< P >::applyFromUi ( int  index,
double  normalized 
)
inlinenoexcept

A change made on the UI thread (controller setParamNormalized, editor, state, program change). While the host processes, only the shadow is written and the parameter is marked; the audio thread calls the user's setParameter at its next block. Calling it here instead (the old behaviour) made the UI thread a second concurrent writer of DSPark setters that allow one - an Equalizer band could end up torn. Returns true when the change reached the DSP immediately.

Definition at line 805 of file DSParkVst3.h.

◆ applyNormalized()

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

Audio thread (or no processing at all): shadow + user setter.

Definition at line 786 of file DSParkVst3.h.

◆ attachToHost()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::attachToHost ( Steinberg_FUnknown *  context)
inlinenoexcept

initialize() of either interface: the calling thread IS the UI thread; start the tick when anything can raise a restart off that thread.

Definition at line 943 of file DSParkVst3.h.

◆ blendBypass()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::blendBypass ( float *const *  out,
float *const *  dry,
int  nCh,
int  outStart,
int  dryStart,
int  length 
)
inlinenoexcept

Crossfades length frames of the output (from outStart) toward the dry copy (from dryStart) at the current bypass target.

Definition at line 1491 of file DSParkVst3.h.

◆ clearHistory()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::clearHistory ( )
inlinenoexcept

The plugin's reset() plus the wrapper's own processing state (the dry delay of the bypass and its crossfade).

Definition at line 1481 of file DSParkVst3.h.

◆ collectInputEvents()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::collectInputEvents ( Steinberg_Vst_IEventList *  list,
Steinberg_int32  numSamples,
BlockEventList &  events 
)
inlinenoexcept

Collects the VST3 note events (HasMidi plugins only).

Definition at line 1016 of file DSParkVst3.h.

◆ collectParameterChanges()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::collectParameterChanges ( Steinberg_Vst_IParameterChanges *  changes,
Steinberg_int32  numSamples,
BlockEventList &  events 
)
inlinenoexcept

Collects parameter queue points. In sample-accurate mode every point is kept with its offset; otherwise only the last point per queue - except on a MIDI controller proxy, whose points are MIDI events, not automation: each one reaches handleMidiEvent with its offset in both modes, as the raw MIDI of the CLAP and AU backends does. (Opted-out plugins used to receive one controller event per queue and block.)

Definition at line 976 of file DSParkVst3.h.

◆ deliverPendingRestart()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::deliverPendingRestart ( )
inlinenoexcept

UI thread: delivers any restart request the audio thread raised.

Definition at line 927 of file DSParkVst3.h.

◆ detachFromHost()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::detachFromHost ( )
inlinenoexcept

terminate() of either interface: deliver what is queued, stop the tick and release the host's IComponentHandler, as Steinberg's own EditController::terminate does (the old code held it until the last release of the plugin, after the host had already torn down).

Definition at line 956 of file DSParkVst3.h.

◆ drainPending()

template<typename P >
bool dspark::plugin::vst3::Plugin< P >::drainPending ( )
inlinenoexcept

Hands the UI-side changes to the DSP (on whichever thread may call setParameter now); true when any parameter was applied.

Definition at line 820 of file DSParkVst3.h.

◆ forwardTransport()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::forwardTransport ( const Steinberg_Vst_ProcessContext *  ctx)
inlinenoexcept

Forwards the host ProcessContext as a TransportInfo (HasTransport).

Definition at line 1509 of file DSParkVst3.h.

◆ fromLens()

template<typename P >
static Plugin * dspark::plugin::vst3::Plugin< P >::fromLens ( void *  iface,
int  lens 
)
inlinestaticnoexcept

Definition at line 713 of file DSParkVst3.h.

◆ indexOfParamId()

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

Definition at line 780 of file DSParkVst3.h.

◆ lensPtr()

template<typename P >
void * dspark::plugin::vst3::Plugin< P >::lensPtr ( int  lens)
inlinenoexcept

Definition at line 719 of file DSParkVst3.h.

◆ midiProxySlot()

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

Table slot of a proxy id: channel * kNumMidiControllers + controller.

Definition at line 1189 of file DSParkVst3.h.

◆ numInputBuses()

template<typename P >
static Steinberg_int32 dspark::plugin::vst3::Plugin< P >::numInputBuses ( )
inlinestaticnoexcept

Audio inputs: none for an Instrument; otherwise the main pair plus an aux bus when the class implements the sidechain processBlock.

Definition at line 1222 of file DSParkVst3.h.

◆ offeredExpression()

template<typename P >
static int dspark::plugin::vst3::Plugin< P >::offeredExpression ( Steinberg_int32  index)
inlinestaticnoexcept

The ExpressionType of the index-th offered expression, or -1.

Definition at line 2246 of file DSParkVst3.h.

◆ offersExpression()

template<typename P >
static bool dspark::plugin::vst3::Plugin< P >::offersExpression ( Steinberg_Vst_NoteExpressionTypeID  id)
inlinestaticnoexcept

True when id is one of the offered expressions.

Definition at line 2296 of file DSParkVst3.h.

◆ onUiThread()

template<typename P >
bool dspark::plugin::vst3::Plugin< P >::onUiThread ( ) const
inlinenoexcept

Definition at line 901 of file DSParkVst3.h.

◆ onUiTick()

template<typename P >
static void dspark::plugin::vst3::Plugin< P >::onUiTick ( void *  self)
inlinestaticnoexcept

Definition at line 936 of file DSParkVst3.h.

◆ programIndexOf()

template<typename P >
static int dspark::plugin::vst3::Plugin< P >::programIndexOf ( Steinberg_Vst_ParamValue  normalized)
inlinestaticnoexcept

The preset index a host-supplied normalized value selects.

The value arrives from a host or from a project file. VST3 declares it to be in [0, 1] and the wrapper enforces nothing, so the range is settled BEFORE the conversion: converting a double that does not fit an int is undefined behaviour, and a clamp written after the cast has already lost. A NaN selects the first preset.

Definition at line 867 of file DSParkVst3.h.

◆ query()

template<typename P >
Steinberg_tresult dspark::plugin::vst3::Plugin< P >::query ( const Steinberg_TUID  iid,
void **  obj 
)
inlinenoexcept

Definition at line 726 of file DSParkVst3.h.

◆ refreshLatency()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::refreshLatency ( Steinberg_int32  extraFlags = 0)
inlinenoexcept

Re-reads the plugin latency; on a change, updates the cache and asks the host to re-fetch it. extraFlags lets the caller batch kParamValuesChanged from a preset load into the same request.

Definition at line 886 of file DSParkVst3.h.

◆ releaseImpl()

template<typename P >
Steinberg_uint32 dspark::plugin::vst3::Plugin< P >::releaseImpl ( )
inlinenoexcept

Definition at line 757 of file DSParkVst3.h.

◆ requestRestart()

template<typename P >
void dspark::plugin::vst3::Plugin< P >::requestRestart ( Steinberg_int32  flags)
inlinenoexcept

Hands flags to the host on the UI thread: at once when called there, otherwise queued for the UI tick or the next UI-thread entry point (getParamNormalized, setParamNormalized, get/setState, setActive, the editor's run-loop timer). The host is never called from another thread: without a tick (a Linux host whose initialize() context offers no IRunLoop - the spec puts it on IPlugFrame) the old code called restartComponent straight from process(). Audio-thread safe: an atomic OR only.

Definition at line 914 of file DSParkVst3.h.

◆ sActivateBus()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sActivateBus ( void *  ,
Steinberg_Vst_MediaType  ,
Steinberg_Vst_BusDirection  ,
Steinberg_int32  ,
Steinberg_TBool   
)
inlinestatic

Definition at line 1276 of file DSParkVst3.h.

◆ sAddRef()

template<typename P >
template<int Lens>
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sAddRef ( void *  self_)
inlinestatic

Definition at line 771 of file DSParkVst3.h.

◆ sCanProcessSampleSize()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCanProcessSampleSize ( void *  ,
Steinberg_int32  size 
)
inlinestatic

Definition at line 1435 of file DSParkVst3.h.

◆ sComponentGetState()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sComponentGetState ( void *  self_,
Steinberg_IBStream *  state 
)
inlinestatic

Definition at line 1368 of file DSParkVst3.h.

◆ sComponentSetState()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sComponentSetState ( void *  self_,
Steinberg_IBStream *  state 
)
inlinestatic

Definition at line 1319 of file DSParkVst3.h.

◆ sCreateView()

template<typename P >
Steinberg_IPlugView *SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCreateView ( void *  self_,
Steinberg_FIDString  name 
)
static

Definition at line 2859 of file DSParkVst3.h.

◆ sCtrlGetState()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCtrlGetState ( void *  ,
Steinberg_IBStream *   
)
inlinestatic

Definition at line 1821 of file DSParkVst3.h.

◆ sCtrlInitialize()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCtrlInitialize ( void *  self_,
Steinberg_FUnknown *  context 
)
inlinestatic

Definition at line 1798 of file DSParkVst3.h.

◆ sCtrlSetState()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCtrlSetState ( void *  ,
Steinberg_IBStream *   
)
inlinestatic

Definition at line 1818 of file DSParkVst3.h.

◆ sCtrlTerminate()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sCtrlTerminate ( void *  self_)
inlinestatic

Definition at line 1805 of file DSParkVst3.h.

◆ sGetBusArrangement()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetBusArrangement ( void *  self_,
Steinberg_Vst_BusDirection  dir,
Steinberg_int32  index,
Steinberg_Vst_SpeakerArrangement *  arr 
)
inlinestatic

Definition at line 1422 of file DSParkVst3.h.

◆ sGetBusCount()

template<typename P >
static Steinberg_int32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetBusCount ( void *  ,
Steinberg_Vst_MediaType  type,
Steinberg_Vst_BusDirection  dir 
)
inlinestatic

Definition at line 1228 of file DSParkVst3.h.

◆ sGetBusInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetBusInfo ( void *  self_,
Steinberg_Vst_MediaType  type,
Steinberg_Vst_BusDirection  dir,
Steinberg_int32  index,
Steinberg_Vst_BusInfo *  bus 
)
inlinestatic

Definition at line 1237 of file DSParkVst3.h.

◆ sGetControllerClassId()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetControllerClassId ( void *  ,
Steinberg_TUID   
)
inlinestatic

Definition at line 1214 of file DSParkVst3.h.

◆ sGetLatencySamples()

template<typename P >
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetLatencySamples ( void *  self_)
inlinestatic

Definition at line 1442 of file DSParkVst3.h.

◆ sGetMidiControllerAssignment()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetMidiControllerAssignment ( void *  ,
Steinberg_int32  busIndex,
Steinberg_int16  channel,
Steinberg_Vst_CtrlNumber  midiControllerNumber,
Steinberg_Vst_ParamID *  id 
)
inlinestatic

Definition at line 2218 of file DSParkVst3.h.

◆ sGetNoteExpressionCount()

template<typename P >
static Steinberg_int32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetNoteExpressionCount ( void *  ,
Steinberg_int32  busIndex,
Steinberg_int16  channel 
)
inlinestatic

Definition at line 2255 of file DSParkVst3.h.

◆ sGetNoteExpressionInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetNoteExpressionInfo ( void *  ,
Steinberg_int32  busIndex,
Steinberg_int16  channel,
Steinberg_int32  index,
struct Steinberg_Vst_NoteExpressionTypeInfo *  info 
)
inlinestatic

Definition at line 2262 of file DSParkVst3.h.

◆ sGetNoteExpressionStringByValue()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetNoteExpressionStringByValue ( void *  ,
Steinberg_int32  busIndex,
Steinberg_int16  ,
Steinberg_Vst_NoteExpressionTypeID  id,
Steinberg_Vst_NoteExpressionValue  valueNormalized,
Steinberg_Vst_String128  string 
)
inlinestatic

Definition at line 2301 of file DSParkVst3.h.

◆ sGetNoteExpressionValueByString()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetNoteExpressionValueByString ( void *  ,
Steinberg_int32  busIndex,
Steinberg_int16  ,
Steinberg_Vst_NoteExpressionTypeID  id,
const Steinberg_Vst_TChar *  string,
Steinberg_Vst_NoteExpressionValue *  valueNormalized 
)
inlinestatic

Definition at line 2330 of file DSParkVst3.h.

◆ sGetParameterCount()

template<typename P >
static Steinberg_int32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetParameterCount ( void *  )
inlinestatic

Definition at line 1833 of file DSParkVst3.h.

◆ sGetParameterInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetParameterInfo ( void *  self_,
Steinberg_int32  index,
Steinberg_Vst_ParameterInfo *  info 
)
inlinestatic

Definition at line 1838 of file DSParkVst3.h.

◆ sGetParamNormalized()

template<typename P >
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetParamNormalized ( void *  self_,
Steinberg_Vst_ParamID  id 
)
inlinestatic

Definition at line 1999 of file DSParkVst3.h.

◆ sGetParamStringByValue()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetParamStringByValue ( void *  self_,
Steinberg_Vst_ParamID  id,
Steinberg_Vst_ParamValue  normalized,
Steinberg_Vst_String128  out 
)
inlinestatic

Definition at line 1897 of file DSParkVst3.h.

◆ sGetParamValueByString()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetParamValueByString ( void *  self_,
Steinberg_Vst_ParamID  id,
Steinberg_Vst_TChar *  string,
Steinberg_Vst_ParamValue *  normalized 
)
inlinestatic

Definition at line 1928 of file DSParkVst3.h.

◆ sGetProcessContextRequirements()

template<typename P >
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProcessContextRequirements ( void *  )
inlinestatic

Definition at line 2093 of file DSParkVst3.h.

◆ sGetProgramInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProgramInfo ( void *  ,
Steinberg_Vst_ProgramListID  ,
Steinberg_int32  ,
Steinberg_Vst_CString  ,
Steinberg_Vst_String128   
)
inlinestatic

Definition at line 2170 of file DSParkVst3.h.

◆ sGetProgramListCount()

template<typename P >
static Steinberg_int32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProgramListCount ( void *  )
inlinestatic

Definition at line 2131 of file DSParkVst3.h.

◆ sGetProgramListInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProgramListInfo ( void *  ,
Steinberg_int32  listIndex,
Steinberg_Vst_ProgramListInfo *  info 
)
inlinestatic

Definition at line 2136 of file DSParkVst3.h.

◆ sGetProgramName()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProgramName ( void *  ,
Steinberg_Vst_ProgramListID  listId,
Steinberg_int32  programIndex,
Steinberg_Vst_String128  name 
)
inlinestatic

Definition at line 2148 of file DSParkVst3.h.

◆ sGetProgramPitchName()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetProgramPitchName ( void *  ,
Steinberg_Vst_ProgramListID  ,
Steinberg_int32  ,
Steinberg_int16  ,
Steinberg_Vst_String128   
)
inlinestatic

Definition at line 2179 of file DSParkVst3.h.

◆ sGetRoutingInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetRoutingInfo ( void *  ,
Steinberg_Vst_RoutingInfo *  ,
Steinberg_Vst_RoutingInfo *   
)
inlinestatic

Definition at line 1272 of file DSParkVst3.h.

◆ sGetSelectedUnit()

template<typename P >
static Steinberg_Vst_UnitID SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetSelectedUnit ( void *  )
inlinestatic

Definition at line 2184 of file DSParkVst3.h.

◆ sGetTailSamples()

template<typename P >
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetTailSamples ( void *  self_)
inlinestatic

Definition at line 1766 of file DSParkVst3.h.

◆ sGetUnitByBus()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetUnitByBus ( void *  ,
Steinberg_Vst_MediaType  ,
Steinberg_Vst_BusDirection  ,
Steinberg_int32  ,
Steinberg_int32  ,
Steinberg_Vst_UnitID *  unitId 
)
inlinestatic

Definition at line 2192 of file DSParkVst3.h.

◆ sGetUnitCount()

template<typename P >
static Steinberg_int32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetUnitCount ( void *  )
inlinestatic

Definition at line 2116 of file DSParkVst3.h.

◆ sGetUnitInfo()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sGetUnitInfo ( void *  ,
Steinberg_int32  unitIndex,
Steinberg_Vst_UnitInfo *  info 
)
inlinestatic

Definition at line 2118 of file DSParkVst3.h.

◆ sHasProgramPitchNames()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sHasProgramPitchNames ( void *  ,
Steinberg_Vst_ProgramListID  ,
Steinberg_int32   
)
inlinestatic

Definition at line 2175 of file DSParkVst3.h.

◆ sInitialize()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sInitialize ( void *  self_,
Steinberg_FUnknown *  context 
)
inlinestatic

Definition at line 1201 of file DSParkVst3.h.

◆ sNormalizedParamToPlain()

template<typename P >
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sNormalizedParamToPlain ( void *  ,
Steinberg_Vst_ParamID  id,
Steinberg_Vst_ParamValue  normalized 
)
inlinestatic

Definition at line 1977 of file DSParkVst3.h.

◆ sPlainParamToNormalized()

template<typename P >
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sPlainParamToNormalized ( void *  ,
Steinberg_Vst_ParamID  id,
Steinberg_Vst_ParamValue  plain 
)
inlinestatic

Definition at line 1988 of file DSParkVst3.h.

◆ sProcess()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sProcess ( void *  self_,
Steinberg_Vst_ProcessData *  data 
)
inlinestatic

Definition at line 1549 of file DSParkVst3.h.

◆ sQuery()

template<typename P >
template<int Lens>
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sQuery ( void *  self_,
const Steinberg_TUID  iid,
void **  obj 
)
inlinestatic

Definition at line 765 of file DSParkVst3.h.

◆ sRelease()

template<typename P >
template<int Lens>
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sRelease ( void *  self_)
inlinestatic

Definition at line 775 of file DSParkVst3.h.

◆ sSelectUnit()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSelectUnit ( void *  ,
Steinberg_Vst_UnitID  unitId 
)
inlinestatic

Definition at line 2187 of file DSParkVst3.h.

◆ sSetActive()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetActive ( void *  self_,
Steinberg_TBool  state 
)
inlinestatic

Definition at line 1281 of file DSParkVst3.h.

◆ sSetBusArrangements()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetBusArrangements ( void *  self_,
Steinberg_Vst_SpeakerArrangement *  inputs,
Steinberg_int32  numIns,
Steinberg_Vst_SpeakerArrangement *  outputs,
Steinberg_int32  numOuts 
)
inlinestatic

Mono and stereo negotiate per the declared ChannelSupport; every bus of an instance (main in, sidechain, out) runs the same width.

Definition at line 1402 of file DSParkVst3.h.

◆ sSetComponentHandler()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetComponentHandler ( void *  self_,
Steinberg_Vst_IComponentHandler *  handler 
)
inlinestatic

Definition at line 2060 of file DSParkVst3.h.

◆ sSetComponentState()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetComponentState ( void *  self_,
Steinberg_IBStream *  state 
)
inlinestatic

Definition at line 1811 of file DSParkVst3.h.

◆ sSetIoMode()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetIoMode ( void *  ,
Steinberg_Vst_IoMode   
)
inlinestatic

Definition at line 1217 of file DSParkVst3.h.

◆ sSetParamNormalized()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetParamNormalized ( void *  self_,
Steinberg_Vst_ParamID  id,
Steinberg_Vst_ParamValue  value 
)
inlinestatic

Definition at line 2022 of file DSParkVst3.h.

◆ sSetProcessing()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetProcessing ( void *  self_,
Steinberg_TBool  state 
)
inlinestatic

setProcessing(true) starts the audio-thread ownership of setParameter; setProcessing(false) - a transport stop, a suspend - ends it. Both clear the processing history through the plugin's reset(), as the CLAP and AU wrappers do on their reset calls: a stop leaves no tail behind, and a start is clean even from a host that never sends the false (processing started again with no stop in between used to resume the tails and delay lines of the previous run).

Definition at line 1463 of file DSParkVst3.h.

◆ sSetUnitProgramData()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetUnitProgramData ( void *  ,
Steinberg_int32  ,
Steinberg_int32  ,
struct Steinberg_IBStream *   
)
inlinestatic

Definition at line 2201 of file DSParkVst3.h.

◆ sSetupProcessing()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sSetupProcessing ( void *  self_,
Steinberg_Vst_ProcessSetup *  setup 
)
inlinestatic

Definition at line 1448 of file DSParkVst3.h.

◆ sTerminate()

template<typename P >
static Steinberg_tresult SMTG_STDMETHODCALLTYPE dspark::plugin::vst3::Plugin< P >::sTerminate ( void *  self_)
inlinestatic

Definition at line 1208 of file DSParkVst3.h.

Member Data Documentation

◆ blockEvents

template<typename P >
BlockEventList dspark::plugin::vst3::Plugin< P >::blockEvents

Definition at line 685 of file DSParkVst3.h.

◆ bypass

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

Definition at line 656 of file DSParkVst3.h.

◆ bypassMix

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

Definition at line 658 of file DSParkVst3.h.

◆ cachedLatency

template<typename P >
std::atomic<int> dspark::plugin::vst3::Plugin< P >::cachedLatency { 0 }

Latency in samples, as last reported to the host. The processing call re-reads it after parameter motion while the host fetches it from its own thread, so it is a published word rather than a plain int. It stands alone – nothing else is ordered against it, and the host is told to re-fetch through the notification path below – so the plain store/load idiom for a single independent value is the whole contract.

Definition at line 651 of file DSParkVst3.h.

◆ componentVtbl

template<typename P >
const Steinberg_Vst_IComponentVtbl* dspark::plugin::vst3::Plugin< P >::componentVtbl

Definition at line 632 of file DSParkVst3.h.

◆ contextReqVtbl

template<typename P >
const Steinberg_Vst_IProcessContextRequirementsVtbl* dspark::plugin::vst3::Plugin< P >::contextReqVtbl

Definition at line 635 of file DSParkVst3.h.

◆ controllerVtbl

template<typename P >
const Steinberg_Vst_IEditControllerVtbl* dspark::plugin::vst3::Plugin< P >::controllerVtbl

Definition at line 634 of file DSParkVst3.h.

◆ currentChannels

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

Definition at line 652 of file DSParkVst3.h.

◆ currentProgram

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

Definition at line 657 of file DSParkVst3.h.

◆ dryDelay

template<typename P >
DryDelay dspark::plugin::vst3::Plugin< P >::dryDelay

Definition at line 661 of file DSParkVst3.h.

◆ dryL

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

Definition at line 659 of file DSParkVst3.h.

◆ dryR

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

Definition at line 659 of file DSParkVst3.h.

◆ editorMemory

template<typename P >
EditorSizeMemory<P> dspark::plugin::vst3::Plugin< P >::editorMemory

The editor size the user left (kept without the editor layer too, so a session saved where the editor ran keeps its size here).

Definition at line 664 of file DSParkVst3.h.

◆ handler

template<typename P >
std::atomic<Steinberg_Vst_IComponentHandler*> dspark::plugin::vst3::Plugin< P >::handler { nullptr }

Definition at line 670 of file DSParkVst3.h.

◆ kBypassIndex

template<typename P >
constexpr Steinberg_int32 dspark::plugin::vst3::Plugin< P >::kBypassIndex
staticconstexpr
Initial value:
=
static_cast<Steinberg_int32>(kNumParams)
static constexpr size_t kNumParams
Definition DSParkVst3.h:607

Definition at line 1826 of file DSParkVst3.h.

◆ kComponentVtbl

template<typename P >
const Steinberg_Vst_IComponentVtbl dspark::plugin::vst3::Plugin< P >::kComponentVtbl
inlinestatic
Initial value:
= {
&sQuery<0>, &sAddRef<0>, &sRelease<0>,
}
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sComponentSetState(void *self_, Steinberg_IBStream *state)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetRoutingInfo(void *, Steinberg_Vst_RoutingInfo *, Steinberg_Vst_RoutingInfo *)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sComponentGetState(void *self_, Steinberg_IBStream *state)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sInitialize(void *self_, Steinberg_FUnknown *context)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sTerminate(void *self_)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetIoMode(void *, Steinberg_Vst_IoMode)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetActive(void *self_, Steinberg_TBool state)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sActivateBus(void *, Steinberg_Vst_MediaType, Steinberg_Vst_BusDirection, Steinberg_int32, Steinberg_TBool)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetBusInfo(void *self_, Steinberg_Vst_MediaType type, Steinberg_Vst_BusDirection dir, Steinberg_int32 index, Steinberg_Vst_BusInfo *bus)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetControllerClassId(void *, Steinberg_TUID)
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetBusCount(void *, Steinberg_Vst_MediaType type, Steinberg_Vst_BusDirection dir)

Definition at line 1388 of file DSParkVst3.h.

◆ kContextReqVtbl

template<typename P >
const Steinberg_Vst_IProcessContextRequirementsVtbl dspark::plugin::vst3::Plugin< P >::kContextReqVtbl
inlinestatic
Initial value:
= {
&sQuery<3>, &sAddRef<3>, &sRelease<3>,
}
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetProcessContextRequirements(void *)

Definition at line 2106 of file DSParkVst3.h.

◆ kControllerVtbl

template<typename P >
const Steinberg_Vst_IEditControllerVtbl dspark::plugin::vst3::Plugin< P >::kControllerVtbl
inlinestatic
Initial value:
= {
&sQuery<2>, &sAddRef<2>, &sRelease<2>,
}
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sGetParamNormalized(void *self_, Steinberg_Vst_ParamID id)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlSetState(void *, Steinberg_IBStream *)
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sPlainParamToNormalized(void *, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue plain)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlGetState(void *, Steinberg_IBStream *)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlInitialize(void *self_, Steinberg_FUnknown *context)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetComponentHandler(void *self_, Steinberg_Vst_IComponentHandler *handler)
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetParameterCount(void *)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParamStringByValue(void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue normalized, Steinberg_Vst_String128 out)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParamValueByString(void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_TChar *string, Steinberg_Vst_ParamValue *normalized)
static Steinberg_Vst_ParamValue SMTG_STDMETHODCALLTYPE sNormalizedParamToPlain(void *, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue normalized)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCtrlTerminate(void *self_)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetParamNormalized(void *self_, Steinberg_Vst_ParamID id, Steinberg_Vst_ParamValue value)
static Steinberg_IPlugView *SMTG_STDMETHODCALLTYPE sCreateView(void *self_, Steinberg_FIDString name)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetParameterInfo(void *self_, Steinberg_int32 index, Steinberg_Vst_ParameterInfo *info)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetComponentState(void *self_, Steinberg_IBStream *state)

Definition at line 2078 of file DSParkVst3.h.

◆ kFirstProxyIndex

template<typename P >
constexpr Steinberg_int32 dspark::plugin::vst3::Plugin< P >::kFirstProxyIndex
staticconstexpr
Initial value:
=
kBypassIndex + 1 + (kNumPresets > 0 ? 1 : 0)
static constexpr Steinberg_int32 kBypassIndex
static constexpr int kNumPresets
Definition DSParkVst3.h:610

Definition at line 1830 of file DSParkVst3.h.

◆ kIsInstrument

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

Definition at line 608 of file DSParkVst3.h.

◆ kMidiMapVtbl

template<typename P >
const Steinberg_Vst_IMidiMappingVtbl dspark::plugin::vst3::Plugin< P >::kMidiMapVtbl
inlinestatic
Initial value:
= {
&sQuery<5>, &sAddRef<5>, &sRelease<5>,
}
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetMidiControllerAssignment(void *, Steinberg_int32 busIndex, Steinberg_int16 channel, Steinberg_Vst_CtrlNumber midiControllerNumber, Steinberg_Vst_ParamID *id)

Definition at line 2235 of file DSParkVst3.h.

◆ kNoteExprVtbl

template<typename P >
const Steinberg_Vst_INoteExpressionControllerVtbl dspark::plugin::vst3::Plugin< P >::kNoteExprVtbl
inlinestatic
Initial value:
= {
&sQuery<6>, &sAddRef<6>, &sRelease<6>,
}
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionValueByString(void *, Steinberg_int32 busIndex, Steinberg_int16, Steinberg_Vst_NoteExpressionTypeID id, const Steinberg_Vst_TChar *string, Steinberg_Vst_NoteExpressionValue *valueNormalized)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionStringByValue(void *, Steinberg_int32 busIndex, Steinberg_int16, Steinberg_Vst_NoteExpressionTypeID id, Steinberg_Vst_NoteExpressionValue valueNormalized, Steinberg_Vst_String128 string)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetNoteExpressionInfo(void *, Steinberg_int32 busIndex, Steinberg_int16 channel, Steinberg_int32 index, struct Steinberg_Vst_NoteExpressionTypeInfo *info)
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetNoteExpressionCount(void *, Steinberg_int32 busIndex, Steinberg_int16 channel)

Definition at line 2368 of file DSParkVst3.h.

◆ kNumParams

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

Definition at line 607 of file DSParkVst3.h.

◆ kNumPresets

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

Definition at line 610 of file DSParkVst3.h.

◆ kProcessorVtbl

template<typename P >
const Steinberg_Vst_IAudioProcessorVtbl dspark::plugin::vst3::Plugin< P >::kProcessorVtbl
inlinestatic
Initial value:
= {
&sQuery<1>, &sAddRef<1>, &sRelease<1>,
}
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetLatencySamples(void *self_)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetupProcessing(void *self_, Steinberg_Vst_ProcessSetup *setup)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sCanProcessSampleSize(void *, Steinberg_int32 size)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetBusArrangement(void *self_, Steinberg_Vst_BusDirection dir, Steinberg_int32 index, Steinberg_Vst_SpeakerArrangement *arr)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetProcessing(void *self_, Steinberg_TBool state)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sProcess(void *self_, Steinberg_Vst_ProcessData *data)
static Steinberg_uint32 SMTG_STDMETHODCALLTYPE sGetTailSamples(void *self_)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetBusArrangements(void *self_, Steinberg_Vst_SpeakerArrangement *inputs, Steinberg_int32 numIns, Steinberg_Vst_SpeakerArrangement *outputs, Steinberg_int32 numOuts)

Definition at line 1787 of file DSParkVst3.h.

◆ kProgramIndex

template<typename P >
constexpr Steinberg_int32 dspark::plugin::vst3::Plugin< P >::kProgramIndex
staticconstexpr
Initial value:
=
kNumPresets > 0 ? kBypassIndex + 1 : -1

Definition at line 1828 of file DSParkVst3.h.

◆ kUnitVtbl

template<typename P >
const Steinberg_Vst_IUnitInfoVtbl dspark::plugin::vst3::Plugin< P >::kUnitVtbl
inlinestatic
Initial value:
= {
&sQuery<4>, &sAddRef<4>, &sRelease<4>,
}
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetProgramListCount(void *)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetUnitByBus(void *, Steinberg_Vst_MediaType, Steinberg_Vst_BusDirection, Steinberg_int32, Steinberg_int32, Steinberg_Vst_UnitID *unitId)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sHasProgramPitchNames(void *, Steinberg_Vst_ProgramListID, Steinberg_int32)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramName(void *, Steinberg_Vst_ProgramListID listId, Steinberg_int32 programIndex, Steinberg_Vst_String128 name)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSelectUnit(void *, Steinberg_Vst_UnitID unitId)
static Steinberg_int32 SMTG_STDMETHODCALLTYPE sGetUnitCount(void *)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramListInfo(void *, Steinberg_int32 listIndex, Steinberg_Vst_ProgramListInfo *info)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetUnitInfo(void *, Steinberg_int32 unitIndex, Steinberg_Vst_UnitInfo *info)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramPitchName(void *, Steinberg_Vst_ProgramListID, Steinberg_int32, Steinberg_int16, Steinberg_Vst_String128)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sGetProgramInfo(void *, Steinberg_Vst_ProgramListID, Steinberg_int32, Steinberg_Vst_CString, Steinberg_Vst_String128)
static Steinberg_tresult SMTG_STDMETHODCALLTYPE sSetUnitProgramData(void *, Steinberg_int32, Steinberg_int32, struct Steinberg_IBStream *)
static Steinberg_Vst_UnitID SMTG_STDMETHODCALLTYPE sGetSelectedUnit(void *)

Definition at line 2205 of file DSParkVst3.h.

◆ kVst3Expressions

template<typename P >
constexpr uint32_t dspark::plugin::vst3::Plugin< P >::kVst3Expressions
staticconstexpr
Initial value:
=
? noteExpressionsOf<P>() & ~expressionBit(MidiEvent::ExpressionType::Pressure)
: 0u
MIDI capability: void handleMidiEvent(const MidiEvent&) noexcept. Its presence grows a note/event inp...
Optional note-expression declaration: static constexpr uint32_t noteExpressions = expressions(....

The note expressions offered to the host: the declared ones VST3 defines (see HasNoteExpressions), none without the declaration.

Definition at line 624 of file DSParkVst3.h.

◆ liveView

template<typename P >
void* dspark::plugin::vst3::Plugin< P >::liveView = nullptr

The editor view that exists right now (UI thread), so a state load can resize it at once; set and cleared by the view itself.

Definition at line 690 of file DSParkVst3.h.

◆ midiMapVtbl

template<typename P >
const Steinberg_Vst_IMidiMappingVtbl* dspark::plugin::vst3::Plugin< P >::midiMapVtbl

Definition at line 637 of file DSParkVst3.h.

◆ midiProxyShadow

template<typename P >
std::atomic<double> dspark::plugin::vst3::Plugin< P >::midiProxyShadow[HasMidi< P > ? kNumMidiProxies :1] {}

Definition at line 655 of file DSParkVst3.h.

◆ noteExprVtbl

template<typename P >
const Steinberg_Vst_INoteExpressionControllerVtbl* dspark::plugin::vst3::Plugin< P >::noteExprVtbl

Definition at line 638 of file DSParkVst3.h.

◆ noteIds

template<typename P >
NoteIdMap dspark::plugin::vst3::Plugin< P >::noteIds

Definition at line 686 of file DSParkVst3.h.

◆ pending

template<typename P >
PendingParams<kNumParams> dspark::plugin::vst3::Plugin< P >::pending

Definition at line 684 of file DSParkVst3.h.

◆ pendingRestart

template<typename P >
std::atomic<Steinberg_int32> dspark::plugin::vst3::Plugin< P >::pendingRestart { 0 }

Definition at line 677 of file DSParkVst3.h.

◆ prepared

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

Definition at line 644 of file DSParkVst3.h.

◆ processing

template<typename P >
std::atomic<bool> dspark::plugin::vst3::Plugin< P >::processing { false }

True while the host processes (setProcessing(true) .. (false), and any process() call). While it is set, UI-thread edits go through pending so the user's setParameter has exactly one caller: the audio thread.

Definition at line 683 of file DSParkVst3.h.

◆ processorVtbl

template<typename P >
const Steinberg_Vst_IAudioProcessorVtbl* dspark::plugin::vst3::Plugin< P >::processorVtbl

Definition at line 633 of file DSParkVst3.h.

◆ refs

template<typename P >
std::atomic<Steinberg_uint32> dspark::plugin::vst3::Plugin< P >::refs { 1 }

Definition at line 640 of file DSParkVst3.h.

◆ resizeLiveView

template<typename P >
void(* dspark::plugin::vst3::Plugin< P >::resizeLiveView) (void *view) noexcept = nullptr
noexcept

Definition at line 691 of file DSParkVst3.h.

◆ setup

template<typename P >
Steinberg_Vst_ProcessSetup dspark::plugin::vst3::Plugin< P >::setup { 0, 0, 0, 48000.0 }

Definition at line 643 of file DSParkVst3.h.

◆ shadow

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

Definition at line 654 of file DSParkVst3.h.

◆ silence

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

Definition at line 660 of file DSParkVst3.h.

◆ uiThread

template<typename P >
std::atomic<std::thread::id> dspark::plugin::vst3::Plugin< P >::uiThread { std::this_thread::get_id() }

Definition at line 676 of file DSParkVst3.h.

◆ uiTicker

template<typename P >
UiTicker dspark::plugin::vst3::Plugin< P >::uiTicker

Definition at line 678 of file DSParkVst3.h.

◆ unitVtbl

template<typename P >
const Steinberg_Vst_IUnitInfoVtbl* dspark::plugin::vst3::Plugin< P >::unitVtbl

Definition at line 636 of file DSParkVst3.h.

◆ user

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

Definition at line 642 of file DSParkVst3.h.


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