Port to android, base on libsamplerate-0.1.3