-
Notifications
You must be signed in to change notification settings - Fork 761
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
SC_Plugin.hpp: registerUnit, add no buffer aliasing flag. #4356
Conversation
thanks!!!
likely an oversight?
how about |
a30fdc3
to
a1340dd
Compare
That's clearly the better choice!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has merge conflicts now due to the codebase reformat. please #4428 for info on how to fix, and sorry about the inconvenience.
a1340dd
to
0f9ee9e
Compare
@snappizz, |
seems to be done? |
Yep! |
Purpose and Motivation
The
registerUnit
function conveniently combines registering constructors and destructors, but hard codes the flag that prevents buffer aliasing. Many UGens require non-aliased buffers. The older defines allowed this. This omission is noted in the example-plugins.Types of changes
This flag simply allows preventing buffer aliasing. The default value of
0
should be a good choice because it's more common, and ensures backwards compatibility.To-do list
Questions for review:
cantAliasBufs
. Though I think it's better than the the corresponding enum,kUnitDef_CantAliasInputsToOutputs
.example-plugins
examples can be updated.