Also the stereo version needs to set need_expose

This commit is contained in:
Johannes Mueller 2017-06-18 23:56:23 +02:00 committed by Robin Gareus
parent f68754b19d
commit dff4153024
1 changed files with 7 additions and 1 deletions

View File

@ -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;