Skip to content

Commit

Permalink
That was just unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
sboukortt committed Feb 16, 2019
1 parent 7b0cb2c commit 099ed6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ void intersect_activate(LV2_Handle handle) {
Intersect *intersect = handle;
int i;

intersect->fft_size = max(1, *intersect->fft_size_hint + .5f);
intersect->fft_size = max(1, *intersect->fft_size_hint);
if (intersect->fft_size % 2 != 0) {
++intersect->fft_size;
}
intersect->overlap_factor = max(1, min(intersect->fft_size, *intersect->overlap_factor_hint + .5f));
intersect->overlap_factor = max(1, min(intersect->fft_size, *intersect->overlap_factor_hint));
intersect->fft_jump_size = intersect->fft_size / intersect->overlap_factor;
intersect->normalization_factor = 1.f / (intersect->fft_size * intersect->overlap_factor);

Expand Down

0 comments on commit 099ed6a

Please sign in to comment.