summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-06-18 23:56:23 +0200
committerDamien Zammit <damien@zamaudio.com>2017-06-24 10:23:43 +1000
commit73c85300181e8ea3fdbbb3d20be1521408ec90de (patch)
tree5de563f74c2f141347a3d0444dd273f8597a029f
parent59a68b6333ab16a3a269b3ea2f255d0f71dc4a5d (diff)
Also the stereo version needs to set need_expose
-rw-r--r--libs/plugins/a-comp.lv2/a-comp.c8
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;