[fpc-pascal] Array as result in function.
fredvs
fiens at hotmail.com
Thu Jan 19 22:50:36 CET 2017
Hello.
With this code, the result of the function does not have same format as the
array input:
Why ?
type
TArFloat = array of cfloat;
function array_in_out(arrayin: TArFloat): TArFloat;
begin
result := arrayin;
end;
Some more explaination.
If in a code I use:
var
thebuffer: TArFloat;
// 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 ?
Thanks.
Fre;D
-----
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
mailing list