From 12d6e00b03a1b8c3959bde5309d56ae1324a7f31 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 1 Nov 2019 15:23:50 +0100 Subject: [PATCH] Fix build --- source/backend/plugin/CarlaPluginJuce.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/source/backend/plugin/CarlaPluginJuce.cpp b/source/backend/plugin/CarlaPluginJuce.cpp index 9ab04f869..5c8040246 100644 --- a/source/backend/plugin/CarlaPluginJuce.cpp +++ b/source/backend/plugin/CarlaPluginJuce.cpp @@ -284,20 +284,26 @@ public: CARLA_SAFE_ASSERT_RETURN(fInstance != nullptr,); const float fixedValue(pData->param.getFixedValue(parameterId, value)); - fInstance->setParameter(static_cast(parameterId), value); + + try { + fInstance->setParameter(static_cast(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(parameterId), value); - CarlaPlugin::setParameterValueRT(parameterId, fixedValue); + try { + fInstance->setParameter(static_cast(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(index)); } CARLA_SAFE_EXCEPTION("setCurrentProgram"); CarlaPlugin::setProgramRT(index, sendCallbackLater);