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

Fix behavior of volume envelope delay phase #1314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

derselbst
Copy link
Member

Previously, fluidsynth used an optimization that allowed silent voices to be completely skipped rendering. While this behavior might make sense from a performance point of view, it does break the expected behavior of the delay phase demanded by the SF2, see #1312 for details. Essentially, the delay phase shall not postpone the sample, rather the sample should be played "silently". And that's what this PR does. However, as the rendered samples will always become zero, the nearest neighbor interpolation is used as a minor optimization in this case.

Fixes #1312.

@derselbst derselbst added the bug label Apr 5, 2024
@derselbst derselbst added this to the 2.4 milestone Apr 5, 2024
@derselbst
Copy link
Member Author

@mrbumpy409 @mawe42 FYI

Copy link

sonarcloud bot commented Apr 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

volume envelope delay is not to spec
1 participant