From b394beabe067064820908699ddc51fe99ecedbb0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 2 Feb 2015 08:30:21 +0000 Subject: [PATCH] Adjustments to last commit --- source/native-plugins/zita-common.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/native-plugins/zita-common.hpp b/source/native-plugins/zita-common.hpp index 0b84c877f..6c9d659cd 100644 --- a/source/native-plugins/zita-common.hpp +++ b/source/native-plugins/zita-common.hpp @@ -91,6 +91,17 @@ public: { const CarlaMutexLocker cml(fParamMutex); + for (ParamList::Itenerator it = fParamChanges.begin(); it.valid(); it.next()) + { + X_handler_Param& param(it.getValue()); + + if (param.index != index) + continue; + + param.value = value; + return; + } + const X_handler_Param param = { index, value }; fParamChanges.append(param); }