Skip to content

add argument to explicitly disable buffer aliasing #10

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 01b-BoringMixer/BoringMixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ PluginLoad(BoringMixer2UGens) {
ft = inTable;
// registerUnit takes the place of the Define*Unit functions. It automatically checks for the presence of a
// destructor function.
// However, it does not seem to be possible to disable buffer aliasing with the C++ header.
registerUnit<BoringMixer2>(ft, "BoringMixer2");
// starting from version 3.11 it also allows to disable buffer aliasing
registerUnit<BoringMixer2>(ft, "BoringMixer2", false);
}
4 changes: 2 additions & 2 deletions 02b-MySaw/MySaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ PluginLoad(MySawUGens)

// registerUnit takes the place of the Define*Unit functions. It automatically checks for the presence of a
// destructor function.
// However, it does not seem to be possible to disable buffer aliasing with the C++ header.
registerUnit<MySaw>(ft, "MySaw");
// starting from version 3.11 it also allows to disable buffer aliasing
registerUnit<MySaw>(ft, "MySaw", false);
}
4 changes: 2 additions & 2 deletions 02b-MySaw/MySaw2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ PluginLoad(MySaw2UGens)

// registerUnit takes the place of the Define*Unit functions. It automatically checks for the presence of a
// destructor function.
// However, it does not seem to be possible to disable buffer aliasing with the C++ header.
registerUnit<MySaw2>(ft, "MySaw2");
// starting from version 3.11 it also allows to disable buffer aliasing
registerUnit<MySaw2>(ft, "MySaw2", false);
}