hi all, i'm trying to implement melp algorithm on c5402 and i have
problem with this code length = fread(int_sp,sizeof(Shortword),size,fp_in); for (i = 0; i < length; i++ ) input[i] = int_sp[i]; in function readbl() in dsp_sub.c. Shortword is defined as short int. size = 180. int_sp = 1024. the problem is it doesn't read correct data from the file. the values for input[0] to input[9] are (using ccs 1.20) : 0, 0, 24, 71, 0, 0, 100, 97, 116, 97 while using microsoft visual c++ 6.0 it reads: 0, 18200, 0, 24932, 24948, -29136, 0, -174, -168, 58 using ccs 1.20 the melp algorithm reads 203 frames (1 frame consists of 180 samples) from a *.wav file and produces 2kb file *.ana while using microsoft visual c++ 6.0 the algorithm reads 204 frames from the same input file and produces 4 kb file *.ana. for additional information i use the parallel port to connect c5402 to pc. does anybody knows what cause the problem and the solution? thank you very much |
false data read
Started by ●December 26, 2003