/** ALOE headers */ #include #include #include #include "typetools.h" #include "noise.h" #include "itf_types.h" #include "inputs.h" #include "outputs.h" #include "stats.h" int longtti,bitsxblock; int configured; #define WITH_NOISE float lastsnr=0; #ifndef WITH_NOISE float cached[1000]; #endif int process_input(int len) { int i; float max; if (datatype_in==TYPE_BITSTREAM) { len*=8; bin2float(input_data,inputf,len); /* and modulate */ for (i=0;imax) max=inputf[i]; } if (max==0) max=1.0; for (i=0;i