- beginning of code factorization in aout_s16 (more cleaning will come)