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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal