fixed some resampler bugs unified downsample and upsample in one function
fixed some resampler bugs
unified downsample and upsample in one function

jeanleflambeur/silkopter,jeanleflambeur/silkopter,jeanleflambeur/silkopter,jeanleflambeur/silkopter,jeanleflambeur/silkopter,jeanleflambeur/silkopter,jeanleflambeur/silkopter