|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
#include <DSParkVst3.h>

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 |
Definition at line 605 of file DSParkVst3.h.
|
inlinenoexcept |
Definition at line 693 of file DSParkVst3.h.
|
inline |
Definition at line 876 of file DSParkVst3.h.
|
inlinenoexcept |
Definition at line 752 of file DSParkVst3.h.
|
inlinenoexcept |
Definition at line 829 of file DSParkVst3.h.
|
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.
|
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.
|
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.
|
inlinenoexcept |
Audio thread (or no processing at all): shadow + user setter.
Definition at line 786 of file DSParkVst3.h.
|
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.
|
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.
|
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.
|
inlinenoexcept |
Collects the VST3 note events (HasMidi plugins only).
Definition at line 1016 of file DSParkVst3.h.
|
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.
|
inlinenoexcept |
UI thread: delivers any restart request the audio thread raised.
Definition at line 927 of file DSParkVst3.h.
|
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.
|
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.
|
inlinenoexcept |
Forwards the host ProcessContext as a TransportInfo (HasTransport).
Definition at line 1509 of file DSParkVst3.h.
|
inlinestaticnoexcept |
Definition at line 713 of file DSParkVst3.h.
|
inlinestaticnoexcept |
Definition at line 780 of file DSParkVst3.h.
|
inlinenoexcept |
Definition at line 719 of file DSParkVst3.h.
|
inlinestaticnoexcept |
Table slot of a proxy id: channel * kNumMidiControllers + controller.
Definition at line 1189 of file DSParkVst3.h.
|
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.
|
inlinestaticnoexcept |
The ExpressionType of the index-th offered expression, or -1.
Definition at line 2246 of file DSParkVst3.h.
|
inlinestaticnoexcept |
True when id is one of the offered expressions.
Definition at line 2296 of file DSParkVst3.h.
|
inlinenoexcept |
Definition at line 901 of file DSParkVst3.h.
|
inlinestaticnoexcept |
Definition at line 936 of file DSParkVst3.h.
|
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.
|
inlinenoexcept |
Definition at line 726 of file DSParkVst3.h.
|
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.
|
inlinenoexcept |
Definition at line 757 of file DSParkVst3.h.
|
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.
|
inlinestatic |
Definition at line 1276 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 771 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1435 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1368 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1319 of file DSParkVst3.h.
|
static |
Definition at line 2859 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1821 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1798 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1818 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1805 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1422 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1228 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1237 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1214 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1442 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2218 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2255 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2262 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2301 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2330 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1833 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1838 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1999 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1897 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1928 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2093 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2170 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2131 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2136 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2148 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2179 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1272 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2184 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1766 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2192 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2116 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2118 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2175 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1201 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1977 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1988 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1549 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 765 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 775 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2187 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1281 of file DSParkVst3.h.
|
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.
|
inlinestatic |
Definition at line 2060 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1811 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1217 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2022 of file DSParkVst3.h.
|
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.
|
inlinestatic |
Definition at line 2201 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1448 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1208 of file DSParkVst3.h.
| BlockEventList dspark::plugin::vst3::Plugin< P >::blockEvents |
Definition at line 685 of file DSParkVst3.h.
| std::atomic<bool> dspark::plugin::vst3::Plugin< P >::bypass { false } |
Definition at line 656 of file DSParkVst3.h.
| float dspark::plugin::vst3::Plugin< P >::bypassMix = 0.0f |
Definition at line 658 of file DSParkVst3.h.
| 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.
| const Steinberg_Vst_IComponentVtbl* dspark::plugin::vst3::Plugin< P >::componentVtbl |
Definition at line 632 of file DSParkVst3.h.
| const Steinberg_Vst_IProcessContextRequirementsVtbl* dspark::plugin::vst3::Plugin< P >::contextReqVtbl |
Definition at line 635 of file DSParkVst3.h.
| const Steinberg_Vst_IEditControllerVtbl* dspark::plugin::vst3::Plugin< P >::controllerVtbl |
Definition at line 634 of file DSParkVst3.h.
| int dspark::plugin::vst3::Plugin< P >::currentChannels = defaultChannelCount<P>() |
Definition at line 652 of file DSParkVst3.h.
| std::atomic<int> dspark::plugin::vst3::Plugin< P >::currentProgram { 0 } |
Definition at line 657 of file DSParkVst3.h.
| DryDelay dspark::plugin::vst3::Plugin< P >::dryDelay |
Definition at line 661 of file DSParkVst3.h.
| std::vector<float> dspark::plugin::vst3::Plugin< P >::dryL |
Definition at line 659 of file DSParkVst3.h.
| std::vector<float> dspark::plugin::vst3::Plugin< P >::dryR |
Definition at line 659 of file DSParkVst3.h.
| 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.
| std::atomic<Steinberg_Vst_IComponentHandler*> dspark::plugin::vst3::Plugin< P >::handler { nullptr } |
Definition at line 670 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 1826 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1388 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2106 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2078 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 1830 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 608 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2235 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2368 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 607 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 610 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 1787 of file DSParkVst3.h.
|
staticconstexpr |
Definition at line 1828 of file DSParkVst3.h.
|
inlinestatic |
Definition at line 2205 of file DSParkVst3.h.
|
staticconstexpr |
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.
| 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.
| const Steinberg_Vst_IMidiMappingVtbl* dspark::plugin::vst3::Plugin< P >::midiMapVtbl |
Definition at line 637 of file DSParkVst3.h.
| std::atomic<double> dspark::plugin::vst3::Plugin< P >::midiProxyShadow[HasMidi< P > ? kNumMidiProxies :1] {} |
Definition at line 655 of file DSParkVst3.h.
| const Steinberg_Vst_INoteExpressionControllerVtbl* dspark::plugin::vst3::Plugin< P >::noteExprVtbl |
Definition at line 638 of file DSParkVst3.h.
| NoteIdMap dspark::plugin::vst3::Plugin< P >::noteIds |
Definition at line 686 of file DSParkVst3.h.
| PendingParams<kNumParams> dspark::plugin::vst3::Plugin< P >::pending |
Definition at line 684 of file DSParkVst3.h.
| std::atomic<Steinberg_int32> dspark::plugin::vst3::Plugin< P >::pendingRestart { 0 } |
Definition at line 677 of file DSParkVst3.h.
| bool dspark::plugin::vst3::Plugin< P >::prepared = false |
Definition at line 644 of file DSParkVst3.h.
| 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.
| const Steinberg_Vst_IAudioProcessorVtbl* dspark::plugin::vst3::Plugin< P >::processorVtbl |
Definition at line 633 of file DSParkVst3.h.
| std::atomic<Steinberg_uint32> dspark::plugin::vst3::Plugin< P >::refs { 1 } |
Definition at line 640 of file DSParkVst3.h.
|
noexcept |
Definition at line 691 of file DSParkVst3.h.
| Steinberg_Vst_ProcessSetup dspark::plugin::vst3::Plugin< P >::setup { 0, 0, 0, 48000.0 } |
Definition at line 643 of file DSParkVst3.h.
| std::atomic<double> dspark::plugin::vst3::Plugin< P >::shadow[kNumParams==0 ? 1 :kNumParams] {} |
Definition at line 654 of file DSParkVst3.h.
| std::vector<float> dspark::plugin::vst3::Plugin< P >::silence |
Definition at line 660 of file DSParkVst3.h.
| 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 dspark::plugin::vst3::Plugin< P >::uiTicker |
Definition at line 678 of file DSParkVst3.h.
| const Steinberg_Vst_IUnitInfoVtbl* dspark::plugin::vst3::Plugin< P >::unitVtbl |
Definition at line 636 of file DSParkVst3.h.
| P dspark::plugin::vst3::Plugin< P >::user {} |
Definition at line 642 of file DSParkVst3.h.