Browse Source

Fix missing offset to LV2 ctrl input port param change requests

Signed-off-by: falkTX <falktx@falktx.com>
pull/443/head
falkTX 1 year ago
parent
commit
ee3d794e09
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      distrho/src/DistrhoPluginLV2.cpp

+ 3
- 1
distrho/src/DistrhoPluginLV2.cpp View File

@@ -1426,7 +1426,9 @@ private:
{ {
if (fCtrlInPortChangeReq == nullptr) if (fCtrlInPortChangeReq == nullptr)
return false; return false;
return fCtrlInPortChangeReq->request_change(fCtrlInPortChangeReq->handle, index, value);
return fCtrlInPortChangeReq->request_change(fCtrlInPortChangeReq->handle,
index + fPlugin.getParameterOffset(),
value);
} }


static bool requestParameterValueChangeCallback(void* const ptr, const uint32_t index, const float value) static bool requestParameterValueChangeCallback(void* const ptr, const uint32_t index, const float value)


Loading…
Cancel
Save