Browse Source

Cleanup

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
38550f31e8
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 12 deletions
  1. +10
    -12
      distrho/src/DistrhoPluginVST.cpp

+ 10
- 12
distrho/src/DistrhoPluginVST.cpp View File

@@ -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();


Loading…
Cancel
Save