i cant check until tomorrow but from memory you would need to declare a float array of some multiple of 512 (4096 is probably right), the value returned will be the number of data points actually calculated and the array passed in has values -1 to 1 with the fft calcuated values