/** ALOE headers */ #include #include #include #include "inputs.h" #include "outputs.h" #include "stats.h" int input_i[INPUT_MAX_DATA]; int process_input(int len) { int long_out_block; int long_in_block; int i,j; long_in_block=typeNsamplesArray(datatype,len); type2int(input_data,input_i,long_in_block,datatype); if (rate > long_in_block || rate<0) { Log("Error invalid interpolation rate: %d len %d\n", rate, long_in_block); return 0; } long_out_block = long_in_block*rate; if (long_out_block > OUTPUT_MAX_DATA) { Log("Output sequence bigger than buffer\n"); return 0; } /* process data */ for (i = 0; i < long_in_block; i++) { for (j=0;j