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

Remove BufferManager::clear() #7378

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

Rossmaxx
Copy link
Contributor

Previously, BufferManager::clear() used to use a memset operation. Since #7156, it is acting as a wrapper around the zeroSampleFrames function, so I de nested the code and removed the wrapper function.

Copy link
Contributor

@michaelgregorius michaelgregorius left a comment

Choose a reason for hiding this comment

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

Looks like a good and straight-forward change to me, especially as there was no call that uses the offset parameter which would have made things more complex. 👍

@sakertooth
Copy link
Contributor

Thoughts about removing BufferManager completely?

@Rossmaxx
Copy link
Contributor Author

Thoughts about removing BufferManager completely?

I do agree about removing completely. But I was trying to get a simple replacement to get the ball rolling (I believe you will do the rest). I could remove completely but i ain't as confident in the sense that i fear a breakage if i do something. The rest can be done in a follow up PR.

@sakertooth sakertooth merged commit 12632e6 into LMMS:master Jul 13, 2024
10 checks passed
@Rossmaxx Rossmaxx deleted the remove-buffermgr-clear branch August 7, 2024 02:17
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.

None yet

3 participants