Browse Source

lv2-plugin(s): Update parameter values after changing program

tags/1.9.6
falkTX 9 years ago
parent
commit
a0653810c5
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      source/plugin/carla-lv2.cpp

+ 8
- 0
source/plugin/carla-lv2.cpp View File

@@ -612,6 +612,14 @@ public:
return;

fDescriptor->set_midi_program(fHandle, 0, bank, program);

for (uint32_t i=0; i < fPorts.paramCount; ++i)
{
fPorts.paramsLast[i] = fDescriptor->get_parameter_value(fHandle, i);

if (fPorts.paramsPtr[i] != nullptr)
*fPorts.paramsPtr[i] = fPorts.paramsLast[i];
}
}

LV2_State_Status lv2_save(const LV2_State_Store_Function store, const LV2_State_Handle handle, const uint32_t /*flags*/, const LV2_Feature* const* const /*features*/) const


Loading…
Cancel
Save