Skip to content

Commit

Permalink
add argument to explicitly disable buffer aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
dyfer committed Nov 16, 2020
1 parent d0622ac commit 8b4a63f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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);
}

0 comments on commit 8b4a63f

Please sign in to comment.