DPF

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

commit f80b1d66667dafa3f41a2332aa665e418f15a959
parent 090743f381ed13a83879e1f245cc1dae8d62dbcb
Author: falkTX <falktx@falktx.com>
Date:   Mon,  5 Sep 2022 11:16:31 +0100

Fix a compiler warning

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

diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp @@ -588,12 +588,14 @@ public: fConnectionFromCtrlToView(nullptr), fHostApplication(host), #endif - fIsComponent(isComponent), fParameterCount(fPlugin.getParameterCount()), fVst3ParameterCount(fParameterCount + kVst3InternalParameterCount), fCachedParameterValues(nullptr), fDummyAudioBuffer(nullptr), fParameterValuesChangedDuringProcessing(nullptr) + #if DPF_VST3_USES_SEPARATE_CONTROLLER + , fIsComponent(isComponent) + #endif #if DISTRHO_PLUGIN_HAS_UI , fParameterValueChangesForUI(nullptr) , fConnectedToUI(false) @@ -609,6 +611,10 @@ public: , fProgramCountMinusOne(fPlugin.getProgramCount()-1) #endif { + #if !DPF_VST3_USES_SEPARATE_CONTROLLER + DISTRHO_SAFE_ASSERT(isComponent); + #endif + #if DISTRHO_PLUGIN_NUM_INPUTS > 0 std::memset(fEnabledInputs, 0, sizeof(fEnabledInputs)); fillInBusInfoDetails<true>(); @@ -2414,7 +2420,6 @@ private: #endif // Temporary data - const bool fIsComponent; const uint32_t fParameterCount; const uint32_t fVst3ParameterCount; // full offset + real float* fCachedParameterValues; // basic offset + real @@ -2426,6 +2431,9 @@ private: #if DISTRHO_PLUGIN_NUM_OUTPUTS > 0 bool fEnabledOutputs[DISTRHO_PLUGIN_NUM_OUTPUTS]; #endif + #if DPF_VST3_USES_SEPARATE_CONTROLLER + const bool fIsComponent; + #endif #if DISTRHO_PLUGIN_HAS_UI bool* fParameterValueChangesForUI; // basic offset + real bool fConnectedToUI;