swr: Add API to make resample engine selectable.