Browse Source

Fix build

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
12d6e00b03
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      source/backend/plugin/CarlaPluginJuce.cpp

+ 11
- 5
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -284,20 +284,26 @@ public:
CARLA_SAFE_ASSERT_RETURN(fInstance != nullptr,);

const float fixedValue(pData->param.getFixedValue(parameterId, value));
fInstance->setParameter(static_cast<int>(parameterId), value);

try {
fInstance->setParameter(static_cast<int>(parameterId), value);
} CARLA_SAFE_EXCEPTION("setParameter");

CarlaPlugin::setParameterValue(parameterId, fixedValue, sendGui, sendOsc, sendCallback);
}

void setParameterValueRT(const uint32_t parameterId, const float value) noexcept override
void setParameterValueRT(const uint32_t parameterId, const float value, const bool sendCallbackLater) noexcept override
{
CARLA_SAFE_ASSERT_RETURN(parameterId < pData->param.count,);
CARLA_SAFE_ASSERT_RETURN(fInstance != nullptr,);

const float fixedValue(pData->param.getFixedValue(parameterId, value));
fInstance->setParameter(static_cast<int>(parameterId), value);

CarlaPlugin::setParameterValueRT(parameterId, fixedValue);
try {
fInstance->setParameter(static_cast<int>(parameterId), value);
} CARLA_SAFE_EXCEPTION("setParameter");

CarlaPlugin::setParameterValueRT(parameterId, fixedValue, sendCallbackLater);
}

void setChunkData(const void* const data, const std::size_t dataSize) override
@@ -362,7 +368,7 @@ public:
CARLA_SAFE_ASSERT_RETURN(index < pData->prog.count,);

try {
fInstance->setCurrentProgram(index);
fInstance->setCurrentProgram(static_cast<int32_t>(index));
} CARLA_SAFE_EXCEPTION("setCurrentProgram");

CarlaPlugin::setProgramRT(index, sendCallbackLater);


Loading…
Cancel
Save