13
0

VST3: fix manually setting integer ctrls from UI (#9212)

set_parameter_internal() normalizes the value (C++ reference),
when setting a parameter manually (inline control, generic UI)
only the shadow_data is updated (which is supposed to be
normalized).
This commit is contained in:
Robin Gareus 2023-02-03 04:43:22 +01:00
parent 830dfdda24
commit d0a51f017a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1850,6 +1850,8 @@ VST3PI::set_parameter (uint32_t p, float value, int32 sample_off, bool to_list)
{
if (to_list) {
set_parameter_internal (index_to_id (p), value, sample_off, false);
} else {
value = _controller->plainParamToNormalized (index_to_id (p), value);
}
_shadow_data[p] = value;
_update_ctrl[p] = true;