Fixed wrong initialization.
This commit is contained in:
parent
37d2a7bc95
commit
48c568187d
@ -253,7 +253,7 @@ activate(LV2_Handle instance)
|
||||
{
|
||||
AExp* aexp = (AExp*)instance;
|
||||
|
||||
*(aexp->gainr) = -160.0f;
|
||||
*(aexp->gainr) = 160.0f;
|
||||
*(aexp->outlevel) = -45.0f;
|
||||
aexp->old_in_peak_db = -160.0f;
|
||||
}
|
||||
@ -322,7 +322,7 @@ run_mono(LV2_Handle instance, uint32_t n_samples)
|
||||
}
|
||||
#endif
|
||||
|
||||
float in_peak = 0;
|
||||
float in_peak = 0.f;
|
||||
aexp->v_gainr = 0.0;
|
||||
|
||||
for (i = 0; i < n_samples; i++) {
|
||||
@ -479,7 +479,7 @@ run_stereo(LV2_Handle instance, uint32_t n_samples)
|
||||
}
|
||||
#endif
|
||||
|
||||
float in_peak = 0;
|
||||
float in_peak = 0.f;
|
||||
aexp->v_gainr = 0.0;
|
||||
|
||||
for (i = 0; i < n_samples; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user