clone from debian libresample-0.1.3