diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2017-06-18 23:56:23 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-31 21:31:22 +0200 |
commit | dff4153024bb81268733bba4a1ca13e480ff1ead (patch) | |
tree | 6cd88597df8fab20159290789f6b090eba263671 | |
parent | f68754b19d875557b7dc32fd206006dbf7a81be7 (diff) |
Also the stereo version needs to set need_expose
-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 4ec65106db..4844c095a2 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 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; |