Changed the size definition to long -> needed for input/output sampling rate conversion changing array sizes
Added a decimation filter