I'm having Issues with calloc in CCSv4
Im running an FFT program that used to work ok in V3.1
it uses three dynamic arrays that are delcared as pointers
float *input;
float *intermediate;
float *output;
these are then intialized using calloc:
input = (float *) calloc(BUFLEN, sizeof(float)); /* Input array */
output = (float *) calloc(BUFLEN, sizeof(float)); /* Output array */
intermediate = (float *) calloc(BUFLEN, sizeof(float)); /* Array for processing*
an FFT is performed on intermediate the result is then IFFT and placed back in intermediate.
input and output are for the input and output time domain signals respectivley.
The data is swapped around the arrays using pointer swapping thus:
/* rotate data arrays */
p = input;
input = output;
output = intermediate;
intermediate = p;
this no longer works in V4. The project compiles but I get no sound.
Can anyone help me?
regards
Danny