put window sliding into upper level function, fixed missing src_ch multiplication resulting in distortion
fixed assertions