I'm trying to apply FFT (this rosettacode.org C++ implementation of FFT : void fft(CArray &x) { ... }
, or should I use the C implementation ?) to an array given by this data :
float *x
VstInt32 sampleFrames // basically the length of the array
When I do:
fft(x);
I get :
error C2664: 'void fft(CArray &)' : cannot convert argument 1 from 'float *' to 'CArray &'
How to solve this kind of error?