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 bugs in fluid_sample_set_sound_data with copy enabled #576

Closed
wants to merge 1 commit into from

Conversation

swesterfeld
Copy link
Contributor

While developing liquidsfz, I noticed that clicks occurred at the end of samples but this was fixed if I passed false as copy argument. So I think there are two problems in fluid_sample_set_sound_data:

  • memset should clear all the memory
  • end position should be before the end of the memory

- memset should clear all the memory
- end position should be before the end of the memory

Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
@derselbst
Copy link
Member

derselbst commented Oct 21, 2019

You are right, thanks for the fix.

I'll slightly change your wording, then cherry-pick to 2.0.x and merge back to master.

end position should be before the end of the memory sample data

Otherwise it's a little confusing, because storedNbFrames actually is end of memory.

derselbst pushed a commit that referenced this pull request Oct 21, 2019
- memset should clear all the memory
- end position should be before the end of sample data

Closes #576

Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
@derselbst derselbst closed this in 50dd443 Oct 22, 2019
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