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

Merged
merged 1 commit into from
Jul 27, 2024
Merged

Fix behavior of volume envelope delay phase #1314

merged 1 commit into from
Jul 27, 2024

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

sonarqubecloud bot commented Apr 5, 2024

@derselbst derselbst merged commit 186a4af into master Jul 27, 2024
69 checks passed
@derselbst derselbst deleted the issue1312 branch July 27, 2024 18:30
derselbst added a commit that referenced this pull request Sep 17, 2024
derselbst added a commit that referenced this pull request Sep 19, 2024
derselbst added a commit that referenced this pull request Jan 25, 2025
derselbst added a commit that referenced this pull request Jan 25, 2025
derselbst added a commit that referenced this pull request Jan 25, 2025
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