[fpc-pascal] Array as result in function.
fiens at hotmail.com
Thu Jan 19 22:50:36 CET 2017
With this code, the result of the function does not have same format as the
TArFloat = array of cfloat;
function array_in_out(arrayin: TArFloat): TArFloat;
result := arrayin;
Some more explaination.
If in a code I use:
// thebuffer was filled with some float-samples
thebuffer := array_in_out(thebuffer);
It is not neutral, the data are affected (in audio the data are noisy).
What is wrong ?
Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Array-as-result-in-function-tp5727366.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal