resample.c - sync with liboil
Version 0.1.3