DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 38550f31e843d1b97975f6c22f92f8535f089f41
parent 432cb7c962afdab5bc5811d80f504c51c90e7ba5
Author: falkTX <falktx@falktx.com>
Date:   Tue, 18 May 2021 01:05:05 +0100

Cleanup

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginVST.cpp | 22++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp @@ -130,9 +130,11 @@ private: // ----------------------------------------------------------------------- -class ParameterCheckHelper +struct ParameterCheckHelper { -public: + bool* parameterChecks; + float* parameterValues; + ParameterCheckHelper() : parameterChecks(nullptr), parameterValues(nullptr) {} @@ -151,9 +153,6 @@ public: } } - bool* parameterChecks; - float* parameterValues; - #if DISTRHO_PLUGIN_WANT_STATE virtual void setStateFromUI(const char* const newKey, const char* const newValue) = 0; #endif @@ -350,16 +349,16 @@ public: // ------------------------------------------------------------------- protected: - intptr_t hostCallback(const int32_t opcode, - const int32_t index = 0, - const intptr_t value = 0, - void* const ptr = nullptr, - const float opt = 0.0f) + inline intptr_t hostCallback(const int32_t opcode, + const int32_t index = 0, + const intptr_t value = 0, + void* const ptr = nullptr, + const float opt = 0.0f) const { return fAudioMaster(fEffect, opcode, index, value, ptr, opt); } - void editParameter(const uint32_t index, const bool started) + void editParameter(const uint32_t index, const bool started) const { hostCallback(started ? audioMasterBeginEdit : audioMasterEndEdit, index); } @@ -708,7 +707,6 @@ public: } break; - //case effIdle: case effEditIdle: if (fVstUI != nullptr) fVstUI->idle();