Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Residual tiny quality of life changes in the LV2 plugin #226

Merged
merged 6 commits into from
May 14, 2020

Conversation

paulfd
Copy link
Member

@paulfd paulfd commented May 13, 2020

  • Oversampling parameter changes in LV2 takes the next power of 2 but does not upper bound the value
  • Added the "fast path" check within sfizz (i.e. don't change if the current value is the same as the new one) for preload size, oversampling and polyphony. Easier and more encompassing to do it there rather than in the LV2, and it benefits everyone.
  • Cosmetic changes for C-style struct initialization on atoms.
  • Updated the docs.

lv2/sfizz.c Outdated
static void
sfizz_lv2_check_oversampling(sfizz_plugin_t* self)
{
sfizz_oversampling_factor_t oversampling = (sfizz_oversampling_factor_t)*self->oversampling_port;
if (oversampling != self->oversampling)
if (*self->oversampling_port < 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe apply next-pow-2 first on the port value, then compare?
and this makes this condition superfluous, given the negative cases is already handled in next-pow-2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was a bit wary since well, it looks like more operations but I guess it's not a big problem.

@jpcima jpcima merged commit 3ed3bc1 into sfztools:develop May 14, 2020
@paulfd paulfd deleted the stack-smash branch January 21, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants