/** ALOE headers */ #include #include #include #include "inputs.h" #include "outputs.h" #include "stats.h" int input_i[INPUT_MAX_DATA]; int input_up[INPUT_MAX_DATA]; int downcnt=0; 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 (!downrate) downrate=1; if (!uprate) uprate=1; long_out_block = (long_in_block*uprate)/downrate; if (long_out_block > OUTPUT_MAX_DATA) { Log("Output sequence bigger than buffer\n"); return 0; } /* upsampling */ for (i = 0; i < long_in_block; i++) { input_up[i*uprate] = input_i[i]; for (j=1;j