Android resample library written in Java ported from JSSRC