diff options
-rw-r--r-- | libs/plugins/a-comp.lv2/a-comp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/plugins/a-comp.lv2/a-comp.c b/libs/plugins/a-comp.lv2/a-comp.c index 3bcd7b9d02..cd9ac1e715 100644 --- a/libs/plugins/a-comp.lv2/a-comp.c +++ b/libs/plugins/a-comp.lv2/a-comp.c @@ -423,7 +423,8 @@ run_stereo(LV2_Handle instance, uint32_t n_samples) float ratio = *acomp->ratio; float thresdb = *acomp->thresdb; - float makeup_target = from_dB(*acomp->makeup); + float makeup = *acomp->makeup; + float makeup_target = from_dB(makeup); float makeup_gain = acomp->makeup_gain; const const float tau = acomp->tau; @@ -449,6 +450,11 @@ run_stereo(LV2_Handle instance, uint32_t n_samples) acomp->v_thresdb = thresdb; acomp->need_expose = true; } + + if (acomp->v_makeup != makeup) { + acomp->v_makeup = makeup; + acomp->need_expose = true; + } #endif float in_peak = 0; |