Skip to content

Commit b700077

Browse files
committed
add argument to explicitly disable buffer aliasing
1 parent d0622ac commit b700077

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

01b-BoringMixer/BoringMixer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ PluginLoad(BoringMixer2UGens) {
4343
ft = inTable;
4444
// registerUnit takes the place of the Define*Unit functions. It automatically checks for the presence of a
4545
// destructor function.
46-
// However, it does not seem to be possible to disable buffer aliasing with the C++ header.
47-
registerUnit<BoringMixer2>(ft, "BoringMixer2");
46+
// starting from version 3.11 it also allows to disable buffer aliasing
47+
registerUnit<BoringMixer2>(ft, "BoringMixer2", 0);
4848
}

02b-MySaw/MySaw.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ PluginLoad(MySawUGens)
131131

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

02b-MySaw/MySaw2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@ PluginLoad(MySaw2UGens)
131131

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

0 commit comments

Comments
 (0)